From patchwork Wed Oct 17 00:08:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leonardo Bras X-Patchwork-Id: 10644457 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D27217D4 for ; Wed, 17 Oct 2018 00:08:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA40A28D3E for ; Wed, 17 Oct 2018 00:08:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAF572A25E; Wed, 17 Oct 2018 00:08:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FROM_EXCESS_BASE64,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E866128D3E for ; Wed, 17 Oct 2018 00:08:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727410AbeJQIBJ (ORCPT ); Wed, 17 Oct 2018 04:01:09 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:38736 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727171AbeJQIBI (ORCPT ); Wed, 17 Oct 2018 04:01:08 -0400 Received: by mail-qt1-f196.google.com with SMTP id l9-v6so28024553qtf.5; Tue, 16 Oct 2018 17:08:15 -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=VrnIrgBHqN7A7q86ytiSO2+obkna/A+3MKssGl3QH9Q=; b=adLddh31vQgKSwRE+gPgkd9igVDWf/2imqllqD8P0hJbajwWGbtEwFIOHVJkp0DYnG NHhsXmd8JT6yzvSug85vrOzPUV/ymHtrYZZGm/tbzsaOUEJEht6uENY4aQIkZot3h3C9 RO1EXIYOJqARWYmcRYdlQOxPkkJJhdEDBLifjj108694dKR8RpiWzAmtPWVmQJBL7gEn p6CdzsG9eYOxCLbDk2ZUlFllchXVU7pg5Ii3EMGWLAQm2B3RPoaFC6WL56AKM1GiSGyi CpIrf0+ziy4guSWmcrmdCVSPPY9Qvyk3ITiHEbhYpOd0MJnC8qZcOgQbViykkLAyxW2N sh+Q== 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=VrnIrgBHqN7A7q86ytiSO2+obkna/A+3MKssGl3QH9Q=; b=LV9MiakyyJFD7kJiePIQyd3+4mR6ff14o7oiZSWIgvq3fjGoD18wqC4uM8u6xmq0Yc BqEh2/h2AFjWhKmLWCK1tGAvDr0B+Gi09Y+Vvvv/vbOzcAVs30UqecbKcQOoVja69rOV GllSf+AqOZABkDOM64ky7jLJ4kHksMjqSEYhLZMaS+Lk+Wk/wDAH9lV6AfKHTfytcrzT /xAFkimVxxteB77k026tMQ5T6fbXlwhnm8WaA9o835/UI714T1enRwsLJ083wdr8g5Lk LTxodR5HOMv0axl2j26hZahnmd4oZBThO7Ml5q+8UHF1WPADanZb2L4Mu8f7QjLQlKgG 5LYg== X-Gm-Message-State: ABuFfohowRqeLHtstYMYQXCMCX5czy+jPLnqZtapbvW5RrBIHKU/QjnU OCpeoDkTMJP7QXcAYg4ejsA= X-Google-Smtp-Source: ACcGV62s/i1JBDY5MaQxsQjbQ/Bo4tewL2r9YrCRDxVBFvf7p7wKBYbEv1jA148LUopQ7MaMr8L4Wg== X-Received: by 2002:ac8:7482:: with SMTP id v2-v6mr23227319qtq.251.1539734895531; Tue, 16 Oct 2018 17:08:15 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id q84-v6sm692576qki.40.2018.10.16.17.08.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Oct 2018 17:08:14 -0700 (PDT) Date: Tue, 16 Oct 2018 21:08:09 -0300 From: Leonardo =?utf-8?b?QnLDoXM=?= To: lkcamp@lists.libreplanetbr.org Cc: Matthew Wilcox , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS Message-ID: <20181017000809.GA21292@WindFlash> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)