ies-bou...@nl.linux.org] On Behalf Of Nelson Castillo
Sent: Tuesday, 10 March 2009 7:04 AM
To: Stoyan Gaydarov
Cc: Kernel Newbies
Subject: Re: BUG_ON with sizeof and bit operations
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ
On Tue, Mar 10, 2009 at 3:59 AM, Stoyan Gaydarov wrote:
> I know that function calls should not normally be inside the BUG_ON
> params but what about sizeof?
>
> so would something like this work as intended:
>
> BUG_ON(expect != sizeof(foo));
IIRC sizeof is not actually a function. Its value is
I know that function calls should not normally be inside the BUG_ON
params but what about sizeof?
so would something like this work as intended:
BUG_ON(expect != sizeof(foo));
also what about bit operations? so like BUG_ON(s & 3); would that
still be ok since it doesn't actually modify the origi