[PATCH] kdev_t updates

David Woodhouse dwmw2 at infradead.org
Mon Jan 21 12:02:31 EST 2002


cdavies at altera.com said:
>  The type definition of kdev_t has changed in 2.5.2. This patch
> updates  a couple of files to reflect this. If its Ok, then I'll check
> it in.

Can you couple it with the appropriate magic in include/linux/compatmac.h 
and make sure that's included from the affected files?

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

--
dwmw2






More information about the linux-mtd mailing list