[PATCH] kdev_t updates

Clive Davies cdavies at altera.com
Tue Jan 22 04:57:43 EST 2002


> Something like this ought to do it:
>
> #if LINUX_KERNEL_CODE < KERNEL_VERSION(2,5,1)
> #define minor(x) MINOR(x)
> #define major(x) MAJOR(x)
> #define NODEV 0
> #else
> #define to_kdev_t(x) (x)
> #endif

Ok, done. I used 

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,2)
#define minor(x) MINOR(x)
#define major(x) MAJOR(x)
#endif

as to_kdev_t & NODEV are appropriately defined in kdev_t.h before and after 
2.5.2




More information about the linux-mtd mailing list