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

Configure Feed

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

uml: correctly strip kernel defines from userspace CFLAGS

KERNEL_DEFINES needs whitespace trimmed, otherwise the whitespace crunching
done by make fools the patsubst which is used to remove KERNEL_DEFINES from
USER_CFLAGS.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jeff Dike and committed by
Linus Torvalds
f15cf515 4f40c055

+5 -2
+5 -2
arch/um/Makefile
··· 70 70 # in KBUILD_CFLAGS. Otherwise, it would cause ld to complain about the two different 71 71 # errnos. 72 72 # These apply to kernelspace only. 73 + # 74 + # strip leading and trailing whitespace to make the USER_CFLAGS removal of these 75 + # defines more robust 73 76 74 - KERNEL_DEFINES = -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask \ 75 - -Dmktime=kernel_mktime $(ARCH_KERNEL_DEFINES) 77 + KERNEL_DEFINES = $(strip -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask \ 78 + -Dmktime=kernel_mktime $(ARCH_KERNEL_DEFINES)) 76 79 KBUILD_CFLAGS += $(KERNEL_DEFINES) 77 80 KBUILD_CFLAGS += $(call cc-option,-fno-unit-at-a-time,) 78 81