Hi Nicolas, [auto build test ERROR on linus/master] [also build test ERROR on v4.10-rc5 next-20170123] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nicolas-Dichtel/uapi-export-all-headers-under-uapi-directories/20170124-011935 config: x86_64-randconfig-s1-01240145 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): In file included from arch/x86/include/asm/processor.h:20, from arch/x86/include/asm/cpufeature.h:4, from arch/x86/include/asm/thread_info.h:52, from include/linux/thread_info.h:25, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:59, from include/linux/spinlock.h:50, from include/linux/mmzone.h:7, from include/linux/gfp.h:5, from include/linux/slab.h:14, from include/linux/crypto.h:24, from arch/x86/kernel/asm-offsets.c:8: >> arch/x86/include/asm/msr.h:4:23: error: msr-index.h: No such file or directory In file included from arch/x86/include/asm/cpufeature.h:4, from arch/x86/include/asm/thread_info.h:52, from include/linux/thread_info.h:25, from arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:59, from include/linux/spinlock.h:50, from include/linux/mmzone.h:7, from include/linux/gfp.h:5, from include/linux/slab.h:14, from include/linux/crypto.h:24, from arch/x86/kernel/asm-offsets.c:8: arch/x86/include/asm/processor.h: In function 'get_debugctlmsr': >> arch/x86/include/asm/processor.h:719: error: 'MSR_IA32_DEBUGCTLMSR' undeclared (first use in this function) arch/x86/include/asm/processor.h:719: error: (Each undeclared identifier is reported only once arch/x86/include/asm/processor.h:719: error: for each function it appears in.) arch/x86/include/asm/processor.h: In function 'update_debugctlmsr': arch/x86/include/asm/processor.h:730: error: 'MSR_IA32_DEBUGCTLMSR' undeclared (first use in this function) In file included from arch/x86/include/asm/smp.h:12, from include/linux/smp.h:59, from include/linux/topology.h:33, from include/linux/gfp.h:8, from include/linux/slab.h:14, from include/linux/crypto.h:24, from arch/x86/kernel/asm-offsets.c:8: arch/x86/include/asm/apic.h: In function 'apic_is_x2apic_enabled': >> arch/x86/include/asm/apic.h:116: error: 'MSR_IA32_APICBASE' undeclared (first use in this function) At top level: cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized" 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 +4 arch/x86/include/asm/msr.h 1965aae3 arch/x86/include/asm/msr.h H. Peter Anvin 2008-10-22 1 #ifndef _ASM_X86_MSR_H 1965aae3 arch/x86/include/asm/msr.h H. Peter Anvin 2008-10-22 2 #define _ASM_X86_MSR_H be7baf80 include/asm-x86/msr.h Thomas Gleixner 2007-10-23 3 b72e7464 arch/x86/include/asm/msr.h Borislav Petkov 2015-06-04 @4 #include "msr-index.h" be7baf80 include/asm-x86/msr.h Thomas Gleixner 2007-10-23 5 8f12dea6 include/asm-x86/msr.h Glauber de Oliveira Costa 2008-01-30 6 #ifndef __ASSEMBLY__ c210d249 include/asm-x86/msr.h Glauber de Oliveira Costa 2008-01-30 7 c210d249 include/asm-x86/msr.h Glauber de Oliveira Costa 2008-01-30 8 #include c210d249 include/asm-x86/msr.h Glauber de Oliveira Costa 2008-01-30 9 #include 6bc1096d arch/x86/include/asm/msr.h Borislav Petkov 2009-05-22 10 #include b72e7464 arch/x86/include/asm/msr.h Borislav Petkov 2015-06-04 11 #include 6bc1096d arch/x86/include/asm/msr.h Borislav Petkov 2009-05-22 12 :::::: The code at line 4 was first introduced by commit :::::: b72e7464e4cf80117938e6adb8c22fdc1ca46d42 x86/uapi: Do not export as part of the user API headers :::::: TO: Borislav Petkov :::::: CC: Ingo Molnar --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation