summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2021-08-16 22:20:56 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2021-09-03 01:17:20 +0200
commit6272cc389fec78d1c0685599b8cad974476d89bb (patch)
treef10c430ffc21c0bf444d8fe8daed563826124117 /Makefile
parentkbuild: Add a comment above -Wno-gnu (diff)
downloadlinux-6272cc389fec78d1c0685599b8cad974476d89bb.tar.xz
linux-6272cc389fec78d1c0685599b8cad974476d89bb.zip
kbuild: Shuffle blank line to improve comment meaning
-Wunused-but-set-variable and -Wunused-const-variable are both disabled for the same reason but there is a blank line between them and no blank line between -Wno-unused-const-variable and the block. Shuffle the new line so that it is clear that the comment applied to both flags and the next block is separate from them. Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8dc6707542a8..d1702ade1970 100644
--- a/Makefile
+++ b/Makefile
@@ -799,8 +799,8 @@ endif
# These warnings generated too much noise in a regular build.
# Use make W=1 to enable them (see scripts/Makefile.extrawarn)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
-
KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
+
ifdef CONFIG_FRAME_POINTER
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
else