tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue head: 03ac207029838424efaf311924cc5fbc68cd77ff commit: 03ac207029838424efaf311924cc5fbc68cd77ff [85/85] KVM: x86: do not read FS/GS base MSRs when saving them config: i386-randconfig-x015-201800 (attached as .config) compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025 reproduce: git checkout 03ac207029838424efaf311924cc5fbc68cd77ff # save the attached .config to linux build tree make ARCH=i386 All error/warnings (new ones prefixed by >>): In file included from include/asm-generic/percpu.h:7:0, from arch/x86/include/asm/percpu.h:543, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:81, from include/linux/spinlock.h:51, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/slab.h:15, from include/linux/crypto.h:24, from arch/x86/kernel/asm-offsets.c:9: arch/x86/include/asm/desc.h: In function 'get_current_kernel_gs_base': >> arch/x86/include/asm/desc.h:91:22: error: 'irq_stack_union' undeclared (first use in this function); did you mean 'irq_stack'? return this_cpu_ptr(irq_stack_union.gs_base); ^ include/linux/percpu-defs.h:221:47: note: in definition of macro '__verify_pcpu_ptr' const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ ^~~ >> include/linux/percpu-defs.h:265:47: note: in expansion of macro 'VERIFY_PERCPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ >> include/linux/percpu-defs.h:266:26: note: in expansion of macro 'per_cpu_ptr' #define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0) ^~~~~~~~~~~ >> include/linux/percpu-defs.h:267:27: note: in expansion of macro 'raw_cpu_ptr' #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr) ^~~~~~~~~~~ >> arch/x86/include/asm/desc.h:91:9: note: in expansion of macro 'this_cpu_ptr' return this_cpu_ptr(irq_stack_union.gs_base); ^~~~~~~~~~~~ arch/x86/include/asm/desc.h:91:22: note: each undeclared identifier is reported only once for each function it appears in return this_cpu_ptr(irq_stack_union.gs_base); ^ include/linux/percpu-defs.h:221:47: note: in definition of macro '__verify_pcpu_ptr' const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ ^~~ >> include/linux/percpu-defs.h:265:47: note: in expansion of macro 'VERIFY_PERCPU_PTR' #define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); }) ^~~~~~~~~~~~~~~~~ >> include/linux/percpu-defs.h:266:26: note: in expansion of macro 'per_cpu_ptr' #define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0) ^~~~~~~~~~~ >> include/linux/percpu-defs.h:267:27: note: in expansion of macro 'raw_cpu_ptr' #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr) ^~~~~~~~~~~ >> arch/x86/include/asm/desc.h:91:9: note: in expansion of macro 'this_cpu_ptr' return this_cpu_ptr(irq_stack_union.gs_base); ^~~~~~~~~~~~ make[2]: *** [arch/x86/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [sub-make] Error 2 vim +91 arch/x86/include/asm/desc.h 87 88 /* Provide the current kernel GS base. */ 89 static inline void *get_current_kernel_gs_base(void) 90 { > 91 return this_cpu_ptr(irq_stack_union.gs_base); 92 } 93 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip