compatmac.h

John Hall john.hall at optionexist.co.uk
Wed Sep 4 11:41:26 EDT 2002


I've found a problem in compatmac.h with current versions of 2.4 armlinux. From about 2.4.18-rmk6 or thereabouts, the following #defines are unnecessary:

#define major(d) (MAJOR(to_kdev_t(d))) 
#define minor(d) (MINOR(to_kdev_t(d)))  #define minor(d) (MINOR(to_kdev_t(d))) 
#define mk_kdev(ma,mi) MKDEV(ma,mi)  #define mk_kdev(ma,mi) MKDEV(ma,mi) 

so I adjusted the #if in my tree from LINUX_VERSION_CODE < KERNEL_VERSION(2,4,19) to 2,4,18. I still need the yield, however, so I've pulled this out into a separate case.

I haven't submitted a proper patch, because I don't know how to check for specific rmk kernel versions. Any suggestions?

Regards,
John Hall

-- 
OptionExist Limited.
The Irwin Centre, Scotland Road, Dry Drayton, Cambridge.
Tel: +44 (0)1954 211244, Fax: +44 (0)1954 211565
http://www.optionexist.co.uk/




More information about the linux-mtd mailing list