[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110421213147.GA9660@merkur.ravnborg.org>
Date: Thu, 21 Apr 2011 23:31:47 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: Eric Dumazet <eric.dumazet@...il.com>,
Michal Marek <mmarek@...e.cz>
Cc: Michal Marek <mmarek@...e.cz>,
linux-kbuild <linux-kbuild@...r.kernel.org>,
lkml <linux-kernel@...r.kernel.org>,
Dave Jones <davej@...hat.com>
Subject: [PATCH] kbuild: fix W=1 with gcc 4.1.2 / 4.3.2
>From dbe15094545e5d6900bde8794df8f42ee5c948d0 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <sam@...nborg.org>
Date: Thu, 21 Apr 2011 23:27:24 +0200
Subject: [PATCH] kbuild: fix W=1 with gcc 4.1.2 / 4.3.2
Building a kernel using W=1 with gcc 4.3.2 failed like this:
cc1: error: unrecognized command line option "-Wpacked-bitfield-compat"
Eric Dumazet <eric.dumazet@...il.com> reported
that gcc 4.1.2 failed like this:
cc1: error: unrecognized command line option "-Wpacked-bitfield-compat"
Make these options dependent on the compiler.
Signed-off-by: Sam Ravnborg <sam@...nborg.org>
Cc: Dave Jones <davej@...hat.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>
---
I considered wrapping all warnings in $(call cc-option, ...)
but I think we have the relevant warning options nailed now.
Sam
scripts/Makefile.build | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index d5f925a..f43aef7 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -64,7 +64,7 @@ KBUILD_EXTRA_WARNINGS += -Wcast-qual
KBUILD_EXTRA_WARNINGS += -Wcast-align
KBUILD_EXTRA_WARNINGS += -Wconversion
KBUILD_EXTRA_WARNINGS += -Wdisabled-optimization
-KBUILD_EXTRA_WARNINGS += -Wlogical-op
+KBUILD_EXTRA_WARNINGS += $(call cc-option, -Wlogical-op)
KBUILD_EXTRA_WARNINGS += -Wmissing-declarations
KBUILD_EXTRA_WARNINGS += -Wmissing-format-attribute
KBUILD_EXTRA_WARNINGS += $(call cc-option, -Wmissing-include-dirs,)
@@ -73,7 +73,7 @@ KBUILD_EXTRA_WARNINGS += -Wnested-externs
KBUILD_EXTRA_WARNINGS += -Wold-style-definition
KBUILD_EXTRA_WARNINGS += $(call cc-option, -Woverlength-strings,)
KBUILD_EXTRA_WARNINGS += -Wpacked
-KBUILD_EXTRA_WARNINGS += -Wpacked-bitfield-compat
+KBUILD_EXTRA_WARNINGS += $(call cc-option, -Wpacked-bitfield-compat)
KBUILD_EXTRA_WARNINGS += -Wpadded
KBUILD_EXTRA_WARNINGS += -Wpointer-arith
KBUILD_EXTRA_WARNINGS += -Wredundant-decls
--
1.6.0.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists