Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1246436imm; Wed, 17 Oct 2018 16:19:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV63waxAHxriHg9VehBw0cHJJ2qhza0O3v5sTUv3SwOvw0mnWN2eF686RCRffL9NOb0RiTxKn X-Received: by 2002:a63:ff23:: with SMTP id k35-v6mr26255926pgi.62.1539818391337; Wed, 17 Oct 2018 16:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539818391; cv=none; d=google.com; s=arc-20160816; b=MHwDHpwkXroSu3lLZnwp+N4+aRP9alpNbTRoeoR1JYHPyuWDjlDWQ4HGT15lAzG4gm C/0IgiTbZEGDLv8fp7LHR0BEix7or3QOzUHFiy/1nf4tNwPv3mFcazEadEKytWOMePIt sAAvWjMpHXMehi68TCrphT9Hd/COASYBm3y1Tbnycgs3BzBCHda308KTryMnBZaIa8OG zaXcAXrg0zl7utpcsvdlu/dv5dGDmxdahgcYZL4Z9MUiJMWo71YjKPNFJXLeAn7Hu5+t 4cErJjlzr9ulF5QIJ+MLpe8i9UWaUoZA5+lVI6TsHCAi6g+sK5JSMSZTfJz9YCveT5xb Dviw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hJn87BvLuxhYZmiTqEFnXSI74/Mevnd5q3TnwuBF7bw=; b=tCuj9H8pEyLYeUwUmZL1BNKad8iARYNl/nlKcbAgeZerXM59iNrnBDOr/m9KKyRWLa kUdY/4MkEyhxdXQiS+ytytRBFt1TINjVWKedeeALtxPD6WP6LP6HQAb8gicPrZJlyzGO AU8WHQzB6kQ9+gfi6QrLnGCk+zr0KJcxe5qgIiGIrDBvSdpaB6hkvP60iLXaE9c7bkSG oQzVsuZF2opDiQ0pFm4Gu+Ba420jtLHZLxUpxWsN7qJEX0HUN8ACD+sMZRYUFcQfvxKU x0WRnf8SlGh7a71gRvlySQiWbi1YtdUood2maRdiK/2DivJLmibJxe4a65Fyd8lM0Eq9 6IcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jT6DCT6m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i21-v6si19529982pgj.51.2018.10.17.16.19.35; Wed, 17 Oct 2018 16:19:51 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jT6DCT6m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727258AbeJRHQu (ORCPT + 99 others); Thu, 18 Oct 2018 03:16:50 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:41925 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726706AbeJRHQu (ORCPT ); Thu, 18 Oct 2018 03:16:50 -0400 Received: by mail-oi1-f194.google.com with SMTP id l197-v6so22497497oib.8; Wed, 17 Oct 2018 16:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hJn87BvLuxhYZmiTqEFnXSI74/Mevnd5q3TnwuBF7bw=; b=jT6DCT6mYcmFRp9jb/7O5FRZ3t2vsI1hQb3kMjLFxIetz0GCf3hO/FNiiUkQRtHy2K Pqzu0URt/bwT6vAjUn2AtvMBgUsAU7xSN2QF4mQDAyvzCDDYNismy3atKqoqCE+bx5Cr 4gU8VBf51bDJOB5LP3dnDcTuBjcl9MsDIOwTQ6ZeVFrDvspMHUukq017C1wWlXWnC0TS 0cJgZT/eIp9oxqSfPzz3n0vGPHESOklFfvP+l9qYkAYjI3iup11hbyuJrc3FKK//ZjvW TRo2XNhak8JjSRLTWnnGFJ5K479TZ/sMN9t6Et2rTPzawExpS+tADYxiHMUPmGYrJFl5 UjwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hJn87BvLuxhYZmiTqEFnXSI74/Mevnd5q3TnwuBF7bw=; b=bFubelYK2APa+XAwA0P5U78yN+ZbY2YXow0yoCIqJXjUwm2iOi9z8nxhlUhtIc08Nt wvZsHJ8m3je3RZ6Db6xAllCbi6/SFHJkcJ5+XW60wfedeiKPUDZhdCKGKRkyNsCXz2om RQXJqi0QVruGZbYMOr/Na5UVU+CfR/bjMCg0MI5Gpzv7C5YATPdQNlnXzcONEzGZqEha V+kucNdf65jUFDkjvtjePMsx96WAPP55bb8RoHXfxGWymFQuncKa/WWQ13zVyAzp+fpH 1RfEdgB62+4LdkgGZWEUSYFNZVeXWkSaWjIL30VEiKPMe6rvunfwz7oSafoW7BZPvdzO cXng== X-Gm-Message-State: ABuFfog7TVkDrBRDVjmAzMfziFSmTKki2/RJJra73Io4/kIHLwSSG4WN Zv+kh4N40R/Z631JRA41qAhjSGFrjUSuk7Bin3A= X-Received: by 2002:aca:1c19:: with SMTP id c25-v6mr14310383oic.246.1539818330014; Wed, 17 Oct 2018 16:18:50 -0700 (PDT) MIME-Version: 1.0 References: <20181017000809.GA21292@WindFlash> <716d591a-a0da-e048-a00d-0fe7dabdc4f1@koikeco.de> In-Reply-To: <716d591a-a0da-e048-a00d-0fe7dabdc4f1@koikeco.de> From: Leonardo Bras Date: Wed, 17 Oct 2018 20:18:37 -0300 Message-ID: Subject: Re: [Lkcamp] [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS To: helen@koikeco.de Cc: lkcamp@lists.libreplanetbr.org, x86@kernel.org, linux-kbuild@vger.kernel.org, Matthew Wilcox , linux-kernel , Masahiro Yamada , Ingo Molnar , Borislav Petkov , Andy Lutomirski , "H. Peter Anvin" , Michal Marek , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Helen, On Wed, Oct 17, 2018 at 1:32 AM Helen Koike wrote: > > Hi Leonardo, > > Thanks for the patch. > > On 10/16/18 9:08 PM, Leonardo Br=C3=A1s wrote: > > Adds -Wshadow=3Dlocal on KBUILD_HOSTCFLAGS to show shadow warnings > > on tools built for HOST. > > > > Signed-off-by: Leonardo Br=C3=A1s > > --- > > 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 :=3D $(shell getconf LFS_LIBS 2>/dev/= null) > > > > HOSTCC =3D gcc > > HOSTCXX =3D g++ > > -KBUILD_HOSTCFLAGS :=3D -Wall -Wmissing-prototypes -Wstrict-prototype= s -O2 \ > > +KBUILD_HOSTCFLAGS :=3D -Wall -Wshadow=3Dlocal -Wmissing-prototypes -= Wstrict-prototypes -O2 \ > > -fomit-frame-pointer -std=3Dgnu89 $(HOST_LFS_CFLAGS) \ > > $(HOSTCFLAGS) > > KBUILD_HOSTCXXFLAGS :=3D -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. > You are right, I will change the order for v2. Thanks! > Regards > Helen Regards, Leonardo