Subject: Re: cdev vs. bdev (32 bit dev_t)
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Warner Losh <imp@village.org>
List: tech-kern
Date: 01/13/1998 12:36:00
In message <199801131737.JAA17650@lestat.nas.nasa.gov> Jason Thorpe writes:
: Unfortnately, you'll get that error when you build whether or not you
: actually use major() ...

I'm kinda partial to

#define major(a) @@BOGON@@

which is pretty much guaranteed to give you an error on expantion :-)

or any of a dozen variations I've seen over the years:

#define major(a) TriplePlusUngood
#define major(a) *BoGoN++
#define major(a) { int i; void *j; j = i; }

(although the latter isn't effective on some compilers)

Warner