Re: [2.5 patch] MegaRAID driver: remove kernel 2.0 and 2.2 code

From: Adrian Bunk (
Date: Tue Jan 21 2003 - 09:13:51 EST

On Tue, Jan 21, 2003 at 02:43:51AM +0000, Alan wrote:
> On Sat, 2003-01-18 at 16:22, Adrian Bunk wrote:
> > The patch below removes obsolete #if'd code for kernel 2.0 and 2.2 from
> > drivers/scsi/megaraid.{h,c} (this includes the expansion of some
> > #define's that were definded differently for different kernel versions).
> >
> > I've tested the compilation with 2.5.59.
> AMI still issue 2.2 versions of this driver so its probably excessive
> (AMI ? -- LSI now I guess)

In megaraid.c IO_LOCK_IRQ and IO_UNLOCK_IRQ are only defined for >= 2.4
(they are present since 2.5.1-pre2) and the since Al Viro's
kdev_t -> block_device * conversion you get a compile error when trying
to use megaraid.{c,h} in 2.2.23.

If it's intended that this file is still used in kernels < 2.4 some
changes are needed.



"Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Jan 23 2003 - 22:00:26 EST