summaryrefslogtreecommitdiff
path: root/include/vdso
diff options
context:
space:
mode:
authorVincenzo Frascino <vincenzo.frascino@arm.com>2020-03-23 12:41:09 +0000
committerBorislav Petkov <bp@suse.de>2020-03-23 18:45:14 +0100
commit1c1a18b00d7e25d1bed3507880de2da07be704a2 (patch)
tree630d5a629dfe4148a63f5a8e9fb9c550dd179144 /include/vdso
parenta5d442f50a41d7c5a6a97b19c49d8a1ee0cf128b (diff)
downloadlwn-1c1a18b00d7e25d1bed3507880de2da07be704a2.tar.gz
lwn-1c1a18b00d7e25d1bed3507880de2da07be704a2.zip
um: Fix header inclusion
User Mode Linux is a flavor of x86 that from the vDSO prospective always falls back on system calls. This implies that it does not require any of the unified vDSO definitions and their inclusion causes side effects like this: In file included from include/vdso/processor.h:10:0, from include/vdso/datapage.h:17, from arch/x86/include/asm/vgtod.h:7, from arch/x86/um/../kernel/sys_ia32.c:49: >> arch/x86/include/asm/vdso/processor.h:11:29: error: redefinition of 'rep_nop' static __always_inline void rep_nop(void) ^~~~~~~ In file included from include/linux/rcupdate.h:30:0, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from arch/x86/um/../kernel/sys_ia32.c:25: arch/x86/um/asm/processor.h:24:20: note: previous definition of 'rep_nop' was here static inline void rep_nop(void) Make sure that the unnecessary headers are not included when um is built to address the problem. Fixes: abc22418db02 ("x86/vdso: Enable x86 to use common headers") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20200323124109.7104-1-vincenzo.frascino@arm.com
Diffstat (limited to 'include/vdso')
0 files changed, 0 insertions, 0 deletions