Skip to content

Commit 14831fa

Browse files
nickdesaulnierswilldeacon
authored andcommitted
arm64: vdso32: suppress error message for 'make mrproper'
When running the following command without arm-linux-gnueabi-gcc in one's $PATH, the following warning is observed: $ ARCH=arm64 CROSS_COMPILE_COMPAT=arm-linux-gnueabi- make -j72 LLVM=1 mrproper make[1]: arm-linux-gnueabi-gcc: No such file or directory This is because KCONFIG is not run for mrproper, so CONFIG_CC_IS_CLANG is not set, and we end up eagerly evaluating various variables that try to invoke CC_COMPAT. This is a similar problem to what was observed in commit dc960bf ("h8300: suppress error messages for 'make clean'") Reported-by: Lucas Henneman <[email protected]> Suggested-by: Masahiro Yamada <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Reviewed-by: Vincenzo Frascino <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent a517faa commit 14831fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/kernel/vdso32/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ cc32-disable-warning = $(call try-run,\
3838
# As a result we set our own flags here.
3939

4040
# KBUILD_CPPFLAGS and NOSTDINC_FLAGS from top-level Makefile
41-
VDSO_CPPFLAGS := -DBUILD_VDSO -D__KERNEL__ -nostdinc -isystem $(shell $(CC_COMPAT) -print-file-name=include)
41+
VDSO_CPPFLAGS := -DBUILD_VDSO -D__KERNEL__ -nostdinc
42+
VDSO_CPPFLAGS += -isystem $(shell $(CC_COMPAT) -print-file-name=include 2>/dev/null)
4243
VDSO_CPPFLAGS += $(LINUXINCLUDE)
4344

4445
# Common C and assembly flags

0 commit comments

Comments
 (0)