[5037] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

2.1.126 drivers/scsi/sd.c module non-compile

daemon@ATHENA.MIT.EDU (DJ Delorie)
Sat Oct 31 22:48:48 1998

Date: 	Sat, 31 Oct 1998 22:48:25 -0500
From: DJ Delorie <dj@envy.delorie.com>
To: linux-scsi@vger.rutgers.edu


kernel 2.1.126

Build the SCSI subsystem as a module, aic7xxx and aha1540 drivers.  I
don't know if this fixes it, but it seemed like the right thing to do,
and it makes it compilable:

*** drivers/scsi/sd.c~	Wed Oct 14 14:43:13 1998
--- drivers/scsi/sd.c	Sat Oct 31 22:27:43 1998
***************
*** 1784,1794 ****
  	for (sdgd = gendisk_head; sdgd; sdgd = sdgd->next)
  	{
! 	    if (sdgd->next >= sd_gendisks && sdgd->next <= LAST_SD_GENDISK)
  	    	    removed++, sdgd->next = sdgd->next->next;
  	    else sdgd = sdgd->next;
  	}
! 	if (removed != N_USED_SCSI_DISKS)
  	    printk("%s %d sd_gendisks in disk chain",
! 	    	removed > N_USED_SCSI_DISKS ? "total" : "just", removed);
  	
      }
--- 1784,1794 ----
  	for (sdgd = gendisk_head; sdgd; sdgd = sdgd->next)
  	{
! 	    if (sdgd->next >= sd_gendisks && sdgd->next <= &(LAST_SD_GENDISK))
  	    	    removed++, sdgd->next = sdgd->next->next;
  	    else sdgd = sdgd->next;
  	}
! 	if (removed != N_USED_SD_MAJORS)
  	    printk("%s %d sd_gendisks in disk chain",
! 	    	removed > N_USED_SD_MAJORS ? "total" : "just", removed);
  	
      }

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post