Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp375124imm; Wed, 17 Oct 2018 01:24:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Z06k0HMs5o3aPo2YjoFRK1p65K9Lzk/3U6DiUjs2n0sFYERlRK1ok2jneVZ8WUe4Adrwu X-Received: by 2002:a63:cf4c:: with SMTP id b12-v6mr23296237pgj.418.1539764646726; Wed, 17 Oct 2018 01:24:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539764646; cv=none; d=google.com; s=arc-20160816; b=sfxA0gKxhgCHj8bLy0xTJyjMkxCT8q6++sKSsAitnEpCa1z533KWC8kzzVNTtqzUO+ 3terpsgVqn7V7cxcefhWwq4vqyuVn9ArmgEo9lTxl4+t/X3bVPYHhmOFqULBQCvjjHEo gofogRPoAV70FXnvTBb8BHL0uhcwZsQyD8js/veLKLOQlwjcL1BgS7nWBRLk916g0UEr SpegCHppXfdIAYadIrZkQNMRTU4FZEI0loyeSS3oExFoPISFH8PRCwVIL2HGJ54SUUnU cI1w0pOxrsM0tVUTCkg7rTSpPhXbvzwR64HF5pXTAV4xyf3w5asVNV4okGxmjfeTgnwM fGhQ== 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:dkim-filter; bh=VQ7DNcwGQ4f+sJ08vqiT3mXYi94gyDIUN8MHYj6lU4g=; b=Hn7yrC3clDTfc4ABWOD8O4wzCr1WOy1Fp89UjK8dvNqs2NVpFva5oylE25hcFOj+nm c83mjxCT+9O0D/VbAaDqTf5R+nB83YTsZTskP7Lg5woPT5g+pmVofYAqeD6vds0uWFN1 qoehiS+4Hq6gxJnQ50XzUkgv2yez+Etyd4YhPwAFUXF6BY/v7ZRN/NrOVuAqdwm9v8Ol gbY5xsoWrSjtu4X2FT5nYZXswPboKYJpDBqs+uRcLI1pRuTrqDshgaBI82du0i3ucopM BKKvjH3zlqmwu9rPm252oJsc++ySZTgI8k2gRallr7yV5I/qisNX0ybJmT2NaFdtsLIp 1EGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=envR4Imv; 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 1-v6si15275509pls.296.2018.10.17.01.23.51; Wed, 17 Oct 2018 01:24:06 -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=@nifty.com header.s=dec2015msa header.b=envR4Imv; 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 S1727353AbeJQQQZ (ORCPT + 99 others); Wed, 17 Oct 2018 12:16:25 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:23171 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbeJQQQZ (ORCPT ); Wed, 17 Oct 2018 12:16:25 -0400 Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w9H8LcFA028359; Wed, 17 Oct 2018 17:21:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w9H8LcFA028359 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1539764499; bh=VQ7DNcwGQ4f+sJ08vqiT3mXYi94gyDIUN8MHYj6lU4g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=envR4Imv+x7Ypver6PEJJWReUhQuPEXl12XabC7Pmt4wUtJrmp9XrZuLygKHtZgjb mbxOb/9Pxksfx/ESUnlamgEed93Y7eAOHClTvrqjL1ep5YUEivnUFKQ7qWSCTfCN7G WZp7qmfIwVWzrPW0iuorDWztmJwRbPAwDaALP1efSR6ukMjILpkeqxl+yKhrnZbJ83 TFNjE2EQUQsLLzWkg5CPb1j/DCbj2fIIpiJVMaCwKYRxy6ke+oIvlQ0uT6wmGLzXBb 2DtZCS2r0h3k/mqlBSR6rDE9bRlXWalJexphduyW1+TsTDDaw+ifoQ6kmrEtLrTm2H b3hLYs4g3iqJA== X-Nifty-SrcIP: [209.85.217.53] Received: by mail-vs1-f53.google.com with SMTP id y195so4452941vsc.7; Wed, 17 Oct 2018 01:21:38 -0700 (PDT) X-Gm-Message-State: ABuFfojrueMckXLU+t8gQdJJYB/R26AgCkvXaPzJq7c1dxWnEF19Fe1g xY4z/faOn7X/I4/+z7ZMy0YSItF8tODuHJ9myQE= X-Received: by 2002:a67:65c3:: with SMTP id z186mr10393250vsb.54.1539764497518; Wed, 17 Oct 2018 01:21:37 -0700 (PDT) MIME-Version: 1.0 References: <20181017000809.GA21292@WindFlash> <20181017081115.GA22535@zn.tnic> In-Reply-To: <20181017081115.GA22535@zn.tnic> From: Masahiro Yamada Date: Wed, 17 Oct 2018 17:21:01 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS To: Borislav Petkov Cc: =?UTF-8?Q?Leonardo_Br=C3=A1s?= , lkcamp@lists.libreplanetbr.org, willy6545@gmail.com, Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Michal Marek , Linux Kernel Mailing List , Linux Kbuild mailing list 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 On Wed, Oct 17, 2018 at 5:11 PM Borislav Petkov wrote: > > On Tue, Oct 16, 2018 at 09:08:09PM -0300, 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) > > -- > > You might wanna take a look at scripts/Makefile.extrawarn which already > has -Wshadow. scripts/Makefile.extrawarn provides options for the target compiler (CC), whereas this patch adds -Wshadow=3Dlocal for the host compiler (HOSTCC). --=20 Best Regards Masahiro Yamada