Re: PCMCIA 3.0.5 and kernel 2.1.126 compile issues

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Sat, 31 Oct 1998 17:18:16 +0100 (MET)


>
> I have looked through the archives and seen no mention of this problem, so if it
> has been explained, the mailing list search engine does not seem to have found
> it.
>
> I am trying to get the 3.0.5 version of the PCMCIA drivers to build on my
> laptop. The kernel version is 2.1.126. It blows up on the defined symbol
> SCSI_DISK_MAJOR. (Which is defined in major.h.)
>
> In the 2.0.x kernels, it is:
>
> #define SCSI_DISK_MAJOR 8
>
> In the 2.1.126 kernel it is a macro:
>
> #define SCSI_DISK_MAJOR(M) ((M) == SCSI_DISK0_MAJOR || \
> ((M) >= SCSI_DISK1_MAJOR &&(M) <= SCSI_DISK7_MAJOR))
>
> The easy fix seems to be to change the occurances of SCSI_DISK_MAJOR in the
> pcmcia code to SCSI_DISK0_MAJOR.

This should work just fine for you, unless you use more than 16 SCSI
devices.
The right fix, of course, is to write >= 16 SCSI disk support for PCMCIA
3.0.5.
>
> This is defined as:
>
> #define SCSI_DISK0_MAJOR 8
>
> My question is "why the change" and will doing this foul something important
> lower in the kernel?

Because 8 is no more the only SCSI disk major, there are 7 others...

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.126 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/