From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754671Ab1DUVNa (ORCPT ); Thu, 21 Apr 2011 17:13:30 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:48158 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752836Ab1DUVN3 (ORCPT ); Thu, 21 Apr 2011 17:13:29 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=MEwbA7Z8yrOIFPvb4HDJJwiEO77XcsRlniv7rpO7IkuTQyD3Z7+Z6DOQV5T9vTlSAC wPDNDAa+9p3xygfPFjt13YPhl7Iy6TiR0aabGYpLZyxLQXV5aOhkuj5zp3bJD1THp6U+ VsBtkW7dKcOQpJFaPzloVKqRnzYBobsW90RAQ= Subject: Re: [PATCH] kbuild: fix W=1 with gcc 4.3.2 From: Eric Dumazet To: Sam Ravnborg Cc: Michal Marek , linux-kbuild , lkml , Dave Jones In-Reply-To: <20110421210852.GA6196@merkur.ravnborg.org> References: <20110421210852.GA6196@merkur.ravnborg.org> Content-Type: text/plain; charset="UTF-8" Date: Thu, 21 Apr 2011 23:13:23 +0200 Message-ID: <1303420403.2784.25.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le jeudi 21 avril 2011 à 23:08 +0200, Sam Ravnborg a écrit : > 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 > > 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 > -- Please add same fix for gcc-4.1.2 cc1: error: unrecognized command line option "-Wlogical-op"