[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1325472276.13595.200.camel@deadeye>
Date: Mon, 02 Jan 2012 02:44:36 +0000
From: Ben Hutchings <ben@...adent.org.uk>
To: Simon Glass <sjg@...omium.org>,
Russell King <rmk+kernel@....linux.org.uk>
Cc: linux-arm-kernel@...ts.infradead.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Circular dependency between <linux/kernel.h> and <asm/bug.h> on ARM
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.
Download attachment "signature.asc" of type "application/pgp-signature" (829 bytes)
Powered by blists - more mailing lists