Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2871193ima; Mon, 22 Oct 2018 18:12:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV63IP+2lBySei3SiLtXnCC+arf6EpaEXKwThsgKhOPEejVrxTmiew9xX4hkxCjgB6aZDVmDY X-Received: by 2002:a63:7f0e:: with SMTP id a14-v6mr45000146pgd.296.1540257141005; Mon, 22 Oct 2018 18:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540257140; cv=none; d=google.com; s=arc-20160816; b=PCgI8qhISQcH0wXMd6eoqzj+36ox3xtR+D7a01UL81i046AApJcZ9OY0ioOb6rCfTB Ah4f0zLiQoV3C0LOq6PPIVePFxf5/xUC/4gq9qTGvRTCfclmlEAmSd2yz0iE47XvUbq2 YDXyG7sQKTUmX3nkVYZU2U0x5fsfpKjIUdfWzsqHr8nLNLg78ls2uX24VvC95iuwerC3 Bg60soQ2hfRonEk1rdSa8JVozTWESH5kfjtHEbY8QlZ9UtO5he8zdWR8CpgBmsGB5nIw oL7BzPrFYGQAnmCBgZFQjOqp3qb7RF9myPAKG3H1vApw4QfhyFo3xsj4AYA8TcZUHN1W eCxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=8ZZdwg9lcy0z91UPab3v9CZJ0b9BOj9iK1CKQUx/A14=; b=fZ6LFwUBqGXk77W7qQ1RU15nIngz/wFuSB5/FSi2fnV7yd5zrIExZG0wxrP9qTb7b6 C/x1guNOKTvjs1lrwpGGznu/fjo8NfRAYeUDElqbgsK9EZxQFghlW6xTlbq9GWTwTsCF RCe1GqjsbPP8YmxDsb1gWueyu6s0M8b/8xzGT9Irejl0kAJY9NyYeiYohrWiWVbkHkKO Fku7AkexpEk9V2QihYOhNKFoS6obmoR7zP3+1WY7IhyclaTV0uJkBjeWyU3Gql3IAilg 0rlFaHmPvqhKTvhVgtNeglyx8zzS8zdkXE4yuhOMfLT7TxY1hwk6i6cyjM+3Ri/e1mFg 45sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nZKas+jI; 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 97-v6si35290239pla.34.2018.10.22.18.12.05; Mon, 22 Oct 2018 18:12:20 -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=nZKas+jI; 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 S1727872AbeJWJcI (ORCPT + 99 others); Tue, 23 Oct 2018 05:32:08 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:42474 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbeJWJcI (ORCPT ); Tue, 23 Oct 2018 05:32:08 -0400 Received: by mail-qk1-f193.google.com with SMTP id u20-v6so12087774qkk.9; Mon, 22 Oct 2018 18:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=8ZZdwg9lcy0z91UPab3v9CZJ0b9BOj9iK1CKQUx/A14=; b=nZKas+jI/hQ2yYEGX5FQ3Q3sw0kY3wvFIt+zIMPf1i3mcH1Z2t5vACn7ZADUsRc5cM oco5ErNHEmU8Zy7XKDl/ijhyFypY3axkG2m4ig9PEjkIOh8vRGbFT9kgZGwsp1jgoDD9 NBemkugAZXqwmEaHfGSQlIbrxZ1fc0L8cd6w1GLyZMEwjXpRM6eLGnhGC934zLJjZwdu O7Il21o2Vnx/9JCx6wnIUz9nOAw9yL6Jv1kKxc2hSJ5wEoCWxUTl1PXbSgTAxKAUE3p+ kMyfNUZIqH7hxb1JebLznoNfY8hkUVe+KS9GDNK7elcFDaebiNqw1ZtkRU99bqDApLM7 Fv1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=8ZZdwg9lcy0z91UPab3v9CZJ0b9BOj9iK1CKQUx/A14=; b=rqvNuc2Ni5878sX+sp18BBYUGFriI27fKON++bj3E42Ql3wysfS8lnCbZN82+jb5/t oWwDz52GZ0XrQ+YfwcAHOatR4aviYRkYQ5TrapUTEan1XoFs6A8xwWDvahVkBYgEJL4H ILGRkJ5f1UislisJ1OrORZaP7ODGiKPG0brlp3SdosUun08RRmPFcwQluxccSWiztf1E D4a0/1AwfVEnqAG51bnnyLTqGWsTAGZgMCJ1Oc6vLehlXggMVmCtiLk5lJXgPbWowxMv 4nqJYH2jyyrFRDgmOwINkIdyFOgb0ClvDHyM0hlzGDEVAfctoYJqVkdfeVUETczCJtx3 2DJA== X-Gm-Message-State: ABuFfoh2YSh1DgsQwAx/lZpto7KI9gYfKJh7y39E6IWQdfynf/lykyy6 GgQR56inGRbh1HKNP7KImBo= X-Received: by 2002:a37:8305:: with SMTP id f5-v6mr45679646qkd.230.1540257068671; Mon, 22 Oct 2018 18:11:08 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id c36-v6sm37310693qta.56.2018.10.22.18.11.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 18:11:07 -0700 (PDT) Date: Mon, 22 Oct 2018 22:11:01 -0300 From: Leonardo =?utf-8?B?QnLDoXM=?= To: lkcamp@lists.libreplanetbr.org Cc: Borislav Petkov , David.Laight@aculab.com, Andy Lutomirski , Ingo Molnar , helen@koikeco.de, Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/5] Adds -Wshadow on KBUILD_HOSTCFLAGS Message-ID: <20181023011101.GA6588@WindFlash> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds -Wshadow 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..3edae5d359b5 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 -Wmissing-prototypes -Wstrict-prototypes -O2 \ -fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS) \ $(HOSTCFLAGS) KBUILD_HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS) $(HOSTCXXFLAGS) -- 2.19.1