ftrace: Build with CPPFLAGS to get -Qunused-arguments
authorJoel Stanley <joel@jms.id.au>
Mon, 17 Sep 2018 07:37:54 +0000 (17:07 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:01:03 +0000 (10:01 +0100)
commit487467e7d031e73907c820ef05ce0d4d18c24767
tree55949070415ebf69dc0a51543bf23bdead3fb32a
parent4df445a77526593d6236af778fda1627bd114000
ftrace: Build with CPPFLAGS to get -Qunused-arguments

When building to record the mcount locations the kernel uses
KBUILD_CFLAGS but not KBUILD_CPPFLAGS. This means it lacks
-Qunused-arguments when building with clang, resulting in a lot of
noisy warnings.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
[nc: Fix conflicts due to lack of 87a32e624037 and d503ac531a52]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/Makefile.build