path: root/Makefile
diff options
authorOzan Çağlayan <>2012-08-14 19:00:54 +0300
committerMichal Marek <>2012-08-31 16:03:16 +0200
commit70cfe02682ff16bd8c1fec0d2374bd4dbceae54f (patch)
tree5e9979b4810281f0720f64ab5155180de5aca6fd /Makefile
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff)
kbuild: Remove useless warning while appending KCFLAGS
This is a respin of an older patch sent by Sam Ravnborg: This patch removes the annoying warning: Makefile:708: "WARNING: Appending $KCFLAGS (-Wno-sign-compare) from command line to kernel $CFLAGS" which is printed every time I use KCFLAFS. The commit which introduced the warning: 69ee0b3 kbuild: do not pick up CFLAGS from the environment tells about the problems when people have CFLAGS in their environment, then switches to KCFLAFS which should be enough to solve the issue, but it anyway introduces a warning. Drop this warning. Signed-off-by: Ozan Çağlayan <> Signed-off-by: Michal Marek <>
Diffstat (limited to 'Makefile')
1 files changed, 3 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index ddf5be952e45..fe8ab312402f 100644
--- a/Makefile
+++ b/Makefile
@@ -648,22 +648,9 @@ ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/ $(CC)), y)
# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
-# But warn user when we do so
-warn-assign = \
-$(warning "WARNING: Appending $$K$(1) ($(K$(1))) from $(origin K$(1)) to kernel $$$(1)")
-ifneq ($(KCPPFLAGS),)
- $(call warn-assign,CPPFLAGS)
-ifneq ($(KAFLAGS),)
- $(call warn-assign,AFLAGS)
-ifneq ($(KCFLAGS),)
- $(call warn-assign,CFLAGS)
# Use --build-id when available.
LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\