From patchwork Thu Apr 21 21:08:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 725741 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3LL993J002800 for ; Thu, 21 Apr 2011 21:09:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754395Ab1DUVJL (ORCPT ); Thu, 21 Apr 2011 17:09:11 -0400 Received: from pqueuea.post.tele.dk ([193.162.153.9]:48900 "EHLO pqueuea.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754109Ab1DUVJL (ORCPT ); Thu, 21 Apr 2011 17:09:11 -0400 Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by pqueuea.post.tele.dk (Postfix) with ESMTP id 4A3BFDB954 for ; Thu, 21 Apr 2011 23:09:10 +0200 (CEST) Received: from merkur.ravnborg.org (x1-6-c4-3d-c7-28-70-1a.k498.webspeed.dk [83.89.83.41]) by pfepb.post.tele.dk (Postfix) with ESMTP id 63245F8401B; Thu, 21 Apr 2011 23:08:52 +0200 (CEST) Date: Thu, 21 Apr 2011 23:08:52 +0200 From: Sam Ravnborg To: Michal Marek , linux-kbuild , lkml , Dave Jones Subject: [PATCH] kbuild: fix W=1 with gcc 4.3.2 Message-ID: <20110421210852.GA6196@merkur.ravnborg.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 21 Apr 2011 21:09:12 +0000 (UTC) Building a kernel using W=1 with gcc 4.3.2 failed like this: cc1: error: unrecognized command line option "-Wpacked-bitfield-compat" Make use of this option dependent on the compiler. Signed-off-by: Sam Ravnborg Cc: Dave Jones --- I do not see this a stable material - people running stable kernels have less value of W=1. And the amount of warnings are outright silly. We should really divide this up a bit so W=1 is semi usefull. Sam -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d5f925a..b280284 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -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