Re: [patch] cli()/sti() cleanup, 2.5.27-A2

Pavel Machek (
Tue, 30 Jul 2002 11:17:48 +0200


> > > It's not that we confuse flags with some other flag all that
> > > frequently that would necessiate some structure-based more abstract
> > > protection of these variables.
> are you sure type-checking is really needed? Sure people can mess up the
> flags variable, but 64-bit archs could do a sizeof at compile-time.

Yes, it is needed; type-checking can be easily implemented as

unsigned long foo;
(&foo == &arg);

-- that gives warning when arg is not unsigned long.

Worst form of spam? Adding advertisment signatures ala
What goes next? Inserting advertisment *into* email?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at