* linux-next: tip-core tree build wanings
@ 2008-09-12 5:07 Stephen Rothwell
2008-09-14 15:05 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2008-09-12 5:07 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next
Hi all,
Today's linux-next build (powerpc_ppc64_defconfig) produced lots of
warnings like this:
In file included from arch/powerpc/platforms/powermac/smp.c:24:
include/linux/kernel.h:498:1: warning: "BUILD_BUG_ON" redefined
In file included from include/linux/linkage.h:4,
from include/linux/kernel.h:11,
from arch/powerpc/platforms/powermac/smp.c:24:
include/linux/compiler.h:209:1: warning: this is the location of the previous definition
Introduced by commit 3cff9a338bd3ace9cfb501e08aeb69913b47c53d ("manual
merge of core/debug") which recreated the definition of the BUILD_BUG_ON
macro in kernel.h.
I applied the following patch.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 12 Sep 2008 15:04:37 +1000
Subject: [PATCH] tip-core: fix for mismerge of kernel.h
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
include/linux/kernel.h | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 0af82d5..74605be 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -494,18 +494,6 @@ struct sysinfo {
char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */
};
-/* Force a compilation error if condition is true */
-#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
-
-/* Force a compilation error if condition is true, but also produce a
- result (of value 0 and type size_t), so the expression can be used
- e.g. in a structure initializer (or where-ever else comma expressions
- aren't permitted). */
-#define BUILD_BUG_ON_ZERO(e) (sizeof(char[1 - 2 * !!(e)]) - 1)
-
-/* Trap pasters of __FUNCTION__ at compile-time */
-#define __FUNCTION__ (__func__)
-
/* This helps us to avoid #ifdef CONFIG_NUMA */
#ifdef CONFIG_NUMA
#define NUMA_BUILD 1
--
1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: linux-next: tip-core tree build wanings
2008-09-12 5:07 linux-next: tip-core tree build wanings Stephen Rothwell
@ 2008-09-14 15:05 ` Ingo Molnar
2008-09-14 18:10 ` Stephen Rothwell
0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2008-09-14 15:05 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Thomas Gleixner, H. Peter Anvin, linux-next
* Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi all,
>
> Today's linux-next build (powerpc_ppc64_defconfig) produced lots of
> warnings like this:
>
> In file included from arch/powerpc/platforms/powermac/smp.c:24:
> include/linux/kernel.h:498:1: warning: "BUILD_BUG_ON" redefined
> In file included from include/linux/linkage.h:4,
> from include/linux/kernel.h:11,
> from arch/powerpc/platforms/powermac/smp.c:24:
> include/linux/compiler.h:209:1: warning: this is the location of the previous definition
>
> Introduced by commit 3cff9a338bd3ace9cfb501e08aeb69913b47c53d ("manual
> merge of core/debug") which recreated the definition of the BUILD_BUG_ON
> macro in kernel.h.
>
> I applied the following patch.
ah, both of these patches were reverted in tip/master 4 days ago:
49937ca: Revert "debug: fix BUILD_BUG_ON() for non-constant expressions"
c3d4a3c: Revert "debug, x86: move BUILD_BUG_ON() and __FUNCTION__"
i've cherry-picked them over into tip/auto-core-next. Thanks,
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: tip-core tree build wanings
2008-09-14 15:05 ` Ingo Molnar
@ 2008-09-14 18:10 ` Stephen Rothwell
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2008-09-14 18:10 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Thomas Gleixner, H. Peter Anvin, linux-next
[-- Attachment #1: Type: text/plain, Size: 503 bytes --]
Hi Ingo,
On Sun, 14 Sep 2008 17:05:23 +0200 Ingo Molnar <mingo@elte.hu> wrote:
>
> ah, both of these patches were reverted in tip/master 4 days ago:
>
> 49937ca: Revert "debug: fix BUILD_BUG_ON() for non-constant expressions"
> c3d4a3c: Revert "debug, x86: move BUILD_BUG_ON() and __FUNCTION__"
>
> i've cherry-picked them over into tip/auto-core-next. Thanks,
Thanks for that.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-14 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 5:07 linux-next: tip-core tree build wanings Stephen Rothwell
2008-09-14 15:05 ` Ingo Molnar
2008-09-14 18:10 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox