Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp909062imm; Wed, 17 Oct 2018 10:06:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV61CR1I2seNI0jbGN0fxHkaGYwuYkIgJDRPhkgIh9UrBdvh4yEm8H7dOoxueEEHUlY5ODt0K X-Received: by 2002:a17:902:b943:: with SMTP id h3-v6mr26780892pls.5.1539796006943; Wed, 17 Oct 2018 10:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539796006; cv=none; d=google.com; s=arc-20160816; b=ApiWW7JVOO4qQzgQ7L0w78+E+Z67Smqb744GEPCVL4LOxVyH/pM7EcVKionkQFtNzj MAdSQh9KOBijxk+dsn1oDzh7lpJDPJjce7e2i/U01Rjr4R3YfC3y2JEosDnEeP7Mcmqt Eu7ezm0wDXs+EK1hiEAH52PtyleB6LOQTXsor/0RwNKCY+y2HnZMQu1d1ffS6y7wV0ZV zTBFkO5SVkz/KXxMnQhnkG4LYMcZ3C/hqSS1Pb58qyYMAVTQRNaiaYKAsulN5KUeOgtq If0bOrnbKWyTGSk6dF1ypp89o7JvWs67BORvHXYLMW7WC7u3Smm2AFzCo00FcMv/7HFz OH0g== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=q2kxXhye9N0aQNUyPs8vZQ3xek94Uyc96KQXCOXhDnU=; b=zV/pAcyD8JoiKlchVHwckfPbjeug0i0dAwo48+748/RpJHRCnmCLnRF26i7JVCsz2o WuxoQk92/hEF5f2t3jhnNVV0HLUzQ0DATavgwSVXyVWFyBQhZ/bKQCeJL/93paspntzk Z5aZvIXug6fC3Wm2yOclrYSqGYbtbgwPTWvLbJzAMK5G8vUXe70AmYRYJFmZrClgFIWY OTQhfhdp+9xov89wBmYvTaiQZpp1Q736kTybMN4kYyxYulxoO1ag8HUO2Zy4nG1d+LGY ne/rt+pnvWVaDLiZvxVl2STbLFQHwPj0JiktlOHVNlqlXMIGu6jjxRjBdE09TXcvwna/ /ZwA== ARC-Authentication-Results: i=1; mx.google.com; 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 d23-v6si19000354pgj.533.2018.10.17.10.06.31; Wed, 17 Oct 2018 10:06:46 -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; 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 S1727874AbeJRBCj (ORCPT + 99 others); Wed, 17 Oct 2018 21:02:39 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60773 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727678AbeJRBCj (ORCPT ); Wed, 17 Oct 2018 21:02:39 -0400 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1gCpGg-0003Ud-5x; Wed, 17 Oct 2018 19:05:58 +0200 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, linux-kbuild@vger.kernel.org, Sebastian Andrzej Siewior , linux-sparse@vger.kernel.org, Masahiro Yamada , Michal Marek Subject: [PATCH 1/3] kbuild: Add -Wshadow to sparse Date: Wed, 17 Oct 2018 19:05:52 +0200 Message-Id: <20181017170554.18841-2-bigeasy@linutronix.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181017170554.18841-1-bigeasy@linutronix.de> References: <20181017170554.18841-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I remember that `sparse' used to warn about shadowed variables but it seems not to do it by default anymore. It was useful. Enable `-Wshadow' while invoking sparse. Cc: linux-sparse@vger.kernel.org Cc: Masahiro Yamada Cc: Michal Marek Cc: linux-kbuild@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf3786e4ffece..0160c6b5dd45d 100644 --- a/Makefile +++ b/Makefile @@ -390,7 +390,7 @@ PYTHON3 = python3 CHECK = sparse CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ - -Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF) + -Wbitwise -Wno-return-void -Wno-unknown-attribute -Wshadow $(CF) NOSTDINC_FLAGS = CFLAGS_MODULE = AFLAGS_MODULE = -- 2.19.1