Commit 487467e7 authored by Joel Stanley's avatar Joel Stanley Committed by Greg Kroah-Hartman
Browse files

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: default avatarJoel Stanley <>
Reviewed-by: default avatarNick Desaulniers <>
Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <>
[nc: Fix conflicts due to lack of 87a32e62 and d503ac53

Signed-off-by: default avatarNathan Chancellor <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 4df445a7
......@@ -242,7 +242,7 @@ else
sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/ "$(ARCH)" \
"$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \
"$(if $(CONFIG_64BIT),64,32)" \
"$(LD)" "$(NM)" "$(RM)" "$(MV)" \
"$(if $(part-of-module),1,0)" "$(@)";
recordmcount_source := $(srctree)/scripts/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment