Re: [PATCH] document optimizing macro for translating PROT_ to VM_bits

From: Miles Bader
Date: Tue Sep 30 2003 - 03:01:50 EST


Muli Ben-Yehuda <mulix@xxxxxxxxx> writes:
> Ok, that's a pretty convincing argument for scraping that
> version. I'll rewrite it to evaluate the arguments at compile time if
> they're constants, which they are, in our case. Unless someone else
> beats me to it, of course ;-)

What's wrong with the macro version? The presence of a __ prefix
suggests that it's only used in controlled circumstances anyway, so is
validity-checking on the bit arguments really worthwhile?

-miles
--
The secret to creativity is knowing how to hide your sources.
--Albert Einstein
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/