Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: clang: fix build failures with sparse check

We should avoid using the space character when passing arguments to
clang, because static code analysis check tool such as sparse may
misinterpret the arguments followed by spaces as build targets hence
cause the build to fail.

Signed-off-by: David Lin <dtwlin@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

authored by

David Lin and committed by
Masahiro Yamada
bb3f38c3 d87e47e1

+2 -2
+2 -2
Makefile
··· 697 698 ifeq ($(cc-name),clang) 699 ifneq ($(CROSS_COMPILE),) 700 - CLANG_TARGET := -target $(notdir $(CROSS_COMPILE:%-=%)) 701 GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..) 702 endif 703 ifneq ($(GCC_TOOLCHAIN),) 704 - CLANG_GCC_TC := -gcc-toolchain $(GCC_TOOLCHAIN) 705 endif 706 KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) 707 KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
··· 697 698 ifeq ($(cc-name),clang) 699 ifneq ($(CROSS_COMPILE),) 700 + CLANG_TARGET := --target=$(notdir $(CROSS_COMPILE:%-=%)) 701 GCC_TOOLCHAIN := $(realpath $(dir $(shell which $(LD)))/..) 702 endif 703 ifneq ($(GCC_TOOLCHAIN),) 704 + CLANG_GCC_TC := --gcc-toolchain=$(GCC_TOOLCHAIN) 705 endif 706 KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) 707 KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)