mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Circular dependency between <linux/kernel.h> and <asm/bug.h> on ARM
@ 2012-01-02  2:44 Ben Hutchings
  2012-01-02  7:01 ` Olof Johansson
  0 siblings, 1 reply; 7+ messages in thread
From: Ben Hutchings @ 2012-01-02  2:44 UTC (permalink / raw)
  To: Simon Glass, Russell King; +Cc: linux-arm-kernel, LKML

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

Commit 87e040b6456fd3416a1f6831c1eedaef5c0a94ff ("ARM: 7017/1: Use
generic BUG() handler") makes BUG() use BUILD_BUG_ON().  However,
BUILD_BUG_ON() is not defined in <linux/bug.h> but in <linux/kernel.h>.

arch/include/asm/bug.h does not include <linux/kernel.h> and *cannot* do
so because the latter already includes <asm/bug.h>.

Maybe BUILD_BUG_ON() should be moved out to a header of its own, or else
this particular use should be moved to some other file.  This needs to
be fixed somehow, as it obviously leads to build failures, e.g.:

https://buildd.debian.org/status/fetch.php?pkg=linux-2.6&arch=armel&ver=3.2~rc7-1~experimental.1&stamp=1325142904

Ben.

-- 
Ben Hutchings
All the simple programs have been written, and all the good names taken.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-06  4:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-02  2:44 Circular dependency between <linux/kernel.h> and <asm/bug.h> on ARM Ben Hutchings
2012-01-02  7:01 ` Olof Johansson
2012-01-02 18:54   ` Simon Glass
2012-01-03 14:45   ` Russell King - ARM Linux
2012-01-03 18:33     ` Simon Glass
2012-01-05  3:43     ` Paul Gortmaker
2012-01-06  4:12       ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®