Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp206871imm; Tue, 16 Oct 2018 21:33:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV62XqGnEo3nWEX8/NODab7alERPTIYUNivSbuzrMhSJUL63rf8DS2kSGqlAvEOKBwGr2CYvd X-Received: by 2002:a63:ff23:: with SMTP id k35-v6mr23001894pgi.62.1539750805087; Tue, 16 Oct 2018 21:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539750805; cv=none; d=google.com; s=arc-20160816; b=iSX5rMz6LwtKMEWUZHHK7UDmw4eV2VfW9w8vlZaiNG61R5BmuEAh09pcJ1GDg9JrGO 28MxanS/lhf+sRHxmJyj/VKAtSL9PcOmOAUCr4aDypGS8enPNkuAnoozSfFOk34bP9zi LtDi/orC+0cPOZnJ5o6dTLB3Gv5+J4hrgcyeXFqs+ELTPQsKgFPZi1gstMgDLMr7nuu/ U60I17byuJXRwi5hVxtSIO8EN+QpTesC9PdByqo9imBYJh8x2R42gaJXqlTOAqjiG4EW 8zzZjbyCYVt1hzjWDuj9WT8guk6panwpS0bjmFMe73k1VCYTp8EdQH4NoBczvDKE6bw2 vW0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=PWxm3SD45Eg6owF26keSIF9eU1wqJcLR5YhM2ajYDoE=; b=LNCdumneNrMxk3UNoVqhMCcE7C3+ozoFmphCwELd+7h06C7bSh1RbiQC5EcwngOET+ ewnBBTz+OLMJhdINiZ4thcjETqn2UmqlLeRYUD/HO418uRuGWYq5pffTW+nDhCaTe/sv 9Q6ASQFhbFQfSLavN1AiNen/082Etn8lOS5RcaE9u2FEc13RWFkMF1e5faT7CEl+J8Cw ZNkXE9QgAqlQc9zpGdbOBgp8AOcqhUvDyCYobRp/cuzeSluj8XRAvFYXkZig4xD2EAqb OSDTDdwOZAv9tZ1YYf+rJK4l+0IYLq/L/pb5OSEuLAwVa7nRyGtTuTp4/aSCJSbPmMFq qpIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c81-v6si17886484pfb.153.2018.10.16.21.32.52; Tue, 16 Oct 2018 21:33:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726999AbeJQM0D (ORCPT + 99 others); Wed, 17 Oct 2018 08:26:03 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:37239 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbeJQM0C (ORCPT ); Wed, 17 Oct 2018 08:26:02 -0400 Received: by mail-qt1-f196.google.com with SMTP id d14-v6so28550375qto.4; Tue, 16 Oct 2018 21:32:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PWxm3SD45Eg6owF26keSIF9eU1wqJcLR5YhM2ajYDoE=; b=NWrRGCWyMouYQrHVlSSMKtoZAigTAr2lVxTEjFTDZpnuPJOygq5JP09OuxoYH9hB+h /xGRBrhTZu5Lj+DsmzmKr4ppVbzi5yzvRkAuarU5bYcHFEdhkCWgTG9ShDafQGDJtl9G Fzs4RWoke/y7RzY1OzL73aqyO6ezTr0Wb5q4ojhBS1Eofo4YSjKVE/RfNwJv71aPwxqT cBcPYWQoRIR6G9cy+zcPNBqiPqg2W4GIeOkBl1PuC26D1yqhYnCM8J9wqnNDKhjUHYjA 0qUToGQgBg1vnm9CeDmfiLScJH4qFcaCanJac+5DvvXhGqZLYQkILzoieabFIEFCsf6F kE4A== X-Gm-Message-State: ABuFfohUY5BVoHLBEwCRdmPlgi5Zv0JiMsRB9UWN6qVB0+/TjLN1wn/u iLrqQRh0R2FzWNkG+64FElY= X-Received: by 2002:a0c:b66d:: with SMTP id q45-v6mr24896645qvf.43.1539750738208; Tue, 16 Oct 2018 21:32:18 -0700 (PDT) Received: from ?IPv6:2804:431:9718:6346:661:e081:23ef:66b? ([2804:431:9718:6346:661:e081:23ef:66b]) by smtp.gmail.com with ESMTPSA id n67-v6sm15142117qkh.66.2018.10.16.21.32.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 21:32:17 -0700 (PDT) Subject: Re: [Lkcamp] [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS To: =?UTF-8?Q?Leonardo_Br=c3=a1s?= , lkcamp@lists.libreplanetbr.org Cc: x86@kernel.org, linux-kbuild@vger.kernel.org, Matthew Wilcox , linux-kernel@vger.kernel.org, Masahiro Yamada , Ingo Molnar , Borislav Petkov , Andy Lutomirski , "H. Peter Anvin" , Michal Marek , Thomas Gleixner References: <20181017000809.GA21292@WindFlash> From: Helen Koike Message-ID: <716d591a-a0da-e048-a00d-0fe7dabdc4f1@koikeco.de> Date: Wed, 17 Oct 2018 01:32:12 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20181017000809.GA21292@WindFlash> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Leonardo, Thanks for the patch. On 10/16/18 9:08 PM, Leonardo Brás wrote: > Adds -Wshadow=local on KBUILD_HOSTCFLAGS to show shadow warnings > on tools built for HOST. > > Signed-off-by: Leonardo Brás > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index e8b599b4dcde..fb0a9ac195e7 100644 > --- a/Makefile > +++ b/Makefile > @@ -360,7 +360,7 @@ HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null) > > HOSTCC = gcc > HOSTCXX = g++ > -KBUILD_HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \ > +KBUILD_HOSTCFLAGS := -Wall -Wshadow=local -Wmissing-prototypes -Wstrict-prototypes -O2 \ > -fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS) \ > $(HOSTCFLAGS) > KBUILD_HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) > I believe this should be the last patch on this series and not the first one to avoid commits in between where we have those warnings. Regards Helen