BUG_ON with sizeof and bit operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 original value?

-- 

-Stoyan

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux