* [U-Boot] BUG_ON() uses macro unlikely(), which isn't defined
@ 2009-12-22 16:28 Matthias Kaehlcke
2009-12-22 19:28 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Kaehlcke @ 2009-12-22 16:28 UTC (permalink / raw)
To: u-boot
include/common.h defines the BUG_ON macro:
#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); }
while(0)
this macro isn't defined in common.h or its includes
i'd submit a patch to fix this, but i wonder what kind of fix is
preferred:
a) eliminate the use of 'unlikely' in BUG_ON
b) define likely() and unlikely() in common.h
c) define likely() and unlikely() elsewhere
d) ?
best regards
--
Matthias Kaehlcke
Embedded Linux Developer
Barcelona
C treats you like a consenting adult. Pascal treats you like a
naughty child. Ada treats you like a criminal
(Bruce Powel Douglass)
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] BUG_ON() uses macro unlikely(), which isn't defined
2009-12-22 16:28 [U-Boot] BUG_ON() uses macro unlikely(), which isn't defined Matthias Kaehlcke
@ 2009-12-22 19:28 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2009-12-22 19:28 UTC (permalink / raw)
To: u-boot
On Tuesday 22 December 2009 11:28:26 Matthias Kaehlcke wrote:
> b) define likely() and unlikely() in common.h
> c) define likely() and unlikely() elsewhere
one of these please, presumably however linux does it
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20091222/64f88ac2/attachment.pgp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-22 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-22 16:28 [U-Boot] BUG_ON() uses macro unlikely(), which isn't defined Matthias Kaehlcke
2009-12-22 19:28 ` Mike Frysinger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.