Subject: Re: cdev vs. bdev (32 bit dev_t)
To: Jason Thorpe <>
From: Warner Losh <>
List: tech-kern
Date: 01/13/1998 12:36:00
In message <> 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)