* compatmac.h
@ 2002-09-04 15:41 John Hall
2002-09-04 22:17 ` compatmac.h David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: John Hall @ 2002-09-04 15:41 UTC (permalink / raw)
To: Linux MTD list (E-mail)
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compatmac.h
2002-09-04 15:41 compatmac.h John Hall
@ 2002-09-04 22:17 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2002-09-04 22:17 UTC (permalink / raw)
To: John Hall; +Cc: Linux MTD list (E-mail)
john.hall@optionexist.co.uk said:
> I haven't submitted a proper patch, because I don't know how to check
> for specific rmk kernel versions. Any suggestions?
#ifndef minor etc. I've just committed it.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-04 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-04 15:41 compatmac.h John Hall
2002-09-04 22:17 ` compatmac.h David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox