[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181017170554.18841-2-bigeasy@linutronix.de>
Date: Wed, 17 Oct 2018 19:05:52 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: linux-kernel@...r.kernel.org
Cc: tglx@...utronix.de, linux-kbuild@...r.kernel.org,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
linux-sparse@...r.kernel.org,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michal Marek <michal.lkml@...kovi.net>
Subject: [PATCH 1/3] kbuild: Add -Wshadow to sparse
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@...r.kernel.org
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Michal Marek <michal.lkml@...kovi.net>
Cc: linux-kbuild@...r.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
---
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
Powered by blists - more mailing lists