Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp25740imm; Tue, 16 Oct 2018 17:09:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60jjGsY/plEIpix4Le7Q5hlz4OennPSdRzmQYCmUdcqQJLqFUXWAqZPYVEZAt+mCv5kYgdt X-Received: by 2002:a17:902:74c1:: with SMTP id f1-v6mr11799464plt.99.1539734953531; Tue, 16 Oct 2018 17:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539734953; cv=none; d=google.com; s=arc-20160816; b=i3pZ4RBfpl+0AbzklvHASrBj012U5Vtu0D1Ka25thCPik0soi/RmcV/83ppw85FN2A 3eOISQxxZtg3KHL4HR+wiAGhz0m9LjaYbwtcL9VjAtO/PrURSNhibDm+ogcYbmlu+igM NydBlh9tk/Xf8GNzquDw6hCFRCig9E7CPMOE8+UNTwVTziXfQno7Q16P6yO5bCy7XoTP KoRrM4XMVxUmm9u0XyEGp6L1rD+3cO6l+u0kG3mZekEvGHgRjQlaPBVQIYN5/yLzoBNP G/O1UmUVEN4dIHT4r3g7lCLNEeR/xD1pp5wMuLMHLdEw1NtLuCKVqRDaoV1FOQZHWzSl 81gA== 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=VrnIrgBHqN7A7q86ytiSO2+obkna/A+3MKssGl3QH9Q=; b=bNsRIDulK7ZECiK0XL3551+SmD/nPNwgOJQmt3ZscSdlGYb0yfaJW5mWgTS+CzTJvr 2ELuxYKPghYFAtCp3wpgGIGMIJ+HgJg68lJ/L2EM8tPZ6dmQF9DwhBe9CXnTuIQBDCpm CqZEMeyPyR5EOv4qqctpZYxGB71mScMF5/FYgty3Z3HLecZ8HlGqF/Br4L6KeYbt9RLM FObFA7c8aHDKYDvk7HaGGKszoLaIApZNrYr5qCyO6xoA5+XuIj6aSkv+Bj0yiMm7Qkzr oOQdm8vKCLI1o1lyVSo4mc3F9aZ3GdmyUK3sZfY+02tSGEIlZAAQaeNWbVokA3/M2qro /4wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=adLddh31; 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 v23-v6si15610747pgh.581.2018.10.16.17.08.56; Tue, 16 Oct 2018 17:09:13 -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=adLddh31; 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 S1727455AbeJQIBJ (ORCPT + 99 others); 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-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-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=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) -- 2.19.1