]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 19 Sep 2018 14:53:54 +0000 (23:53 +0900)
commit70152ad1ed5aed00bf528f6636ac8c84c4f6a5d8
tree0cf3aaaf7087f75c4070db8360c2b89f5a1c1334
parentd9cd171e36a0a756e2d44073ffb1adf94fb7ed60
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>
scripts/Makefile.build