PCMCIA 3.0.5 and kernel 2.1.126 compile issues

Alan Olsen (alano@adams.pcx.ncd.com)
Fri, 30 Oct 1998 11:12:43 -0800


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 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? (I don't think it will do anything nasty to my code as I
do not have any SCSI devices on my laptop. yet.)

Thanks!

-- 
Alan Olsen

- 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/