Hi Juergen, kernel test robot noticed the following build errors:
[auto build test ERROR on tip/sched/core] [also build test ERROR on kvm/queue kvm/next linus/master v6.17-rc6 next-20250917] [cannot apply to tip/x86/core kvm/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Juergen-Gross/x86-paravirt-Remove-not-needed-includes-of-paravirt-h/20250917-230321 base: tip/sched/core patch link: https://lore.kernel.org/r/20250917145220.31064-2-jgross%40suse.com patch subject: [PATCH v2 01/21] x86/paravirt: Remove not needed includes of paravirt.h config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20250918/202509181151.ja2as5h4-...@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250918/202509181151.ja2as5h4-...@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <l...@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202509181151.ja2as5h4-...@intel.com/ All errors (new ones prefixed by >>): In file included from kernel/cpu.c:13: In file included from include/linux/sched/isolation.h:5: In file included from include/linux/cpuset.h:18: In file included from include/linux/mmu_context.h:5: >> arch/x86/include/asm/mmu_context.h:225:2: error: call to undeclared function >> 'paravirt_enter_mmap'; ISO C99 and later do not support implicit function >> declarations [-Wimplicit-function-declaration] 225 | paravirt_enter_mmap(mm); | ^ >> arch/x86/include/asm/mmu_context.h:232:2: error: call to undeclared function >> 'paravirt_arch_exit_mmap'; ISO C99 and later do not support implicit >> function declarations [-Wimplicit-function-declaration] 232 | paravirt_arch_exit_mmap(mm); | ^ arch/x86/include/asm/mmu_context.h:232:2: note: did you mean 'ldt_arch_exit_mmap'? arch/x86/include/asm/mmu_context.h:61:6: note: 'ldt_arch_exit_mmap' declared here 61 | void ldt_arch_exit_mmap(struct mm_struct *mm); | ^ In file included from kernel/cpu.c:42: In file included from include/trace/events/power.h:12: In file included from include/linux/trace_events.h:10: In file included from include/linux/perf_event.h:53: In file included from include/linux/security.h:35: In file included from include/linux/bpf.h:33: In file included from arch/x86/include/asm/rqspinlock.h:5: arch/x86/include/asm/paravirt.h:736:20: error: static declaration of 'paravirt_enter_mmap' follows non-static declaration 736 | static inline void paravirt_enter_mmap(struct mm_struct *mm) | ^ arch/x86/include/asm/mmu_context.h:225:2: note: previous implicit declaration is here 225 | paravirt_enter_mmap(mm); | ^ In file included from kernel/cpu.c:42: In file included from include/trace/events/power.h:12: In file included from include/linux/trace_events.h:10: In file included from include/linux/perf_event.h:53: In file included from include/linux/security.h:35: In file included from include/linux/bpf.h:33: In file included from arch/x86/include/asm/rqspinlock.h:5: arch/x86/include/asm/paravirt.h:742:20: error: static declaration of 'paravirt_arch_exit_mmap' follows non-static declaration 742 | static inline void paravirt_arch_exit_mmap(struct mm_struct *mm) | ^ arch/x86/include/asm/mmu_context.h:232:2: note: previous implicit declaration is here 232 | paravirt_arch_exit_mmap(mm); | ^ 4 errors generated. -- In file included from kernel/workqueue.c:52: In file included from include/linux/sched/isolation.h:5: In file included from include/linux/cpuset.h:18: In file included from include/linux/mmu_context.h:5: >> arch/x86/include/asm/mmu_context.h:225:2: error: call to undeclared function >> 'paravirt_enter_mmap'; ISO C99 and later do not support implicit function >> declarations [-Wimplicit-function-declaration] 225 | paravirt_enter_mmap(mm); | ^ >> arch/x86/include/asm/mmu_context.h:232:2: error: call to undeclared function >> 'paravirt_arch_exit_mmap'; ISO C99 and later do not support implicit >> function declarations [-Wimplicit-function-declaration] 232 | paravirt_arch_exit_mmap(mm); | ^ arch/x86/include/asm/mmu_context.h:232:2: note: did you mean 'ldt_arch_exit_mmap'? arch/x86/include/asm/mmu_context.h:61:6: note: 'ldt_arch_exit_mmap' declared here 61 | void ldt_arch_exit_mmap(struct mm_struct *mm); | ^ 2 errors generated. -- >> arch/x86/kernel/x86_init.c:90:15: error: use of undeclared identifier >> 'default_banner' 90 | .banner = default_banner, | ^ 1 error generated. -- In file included from arch/x86/mm/init.c:30: >> arch/x86/include/asm/mmu_context.h:225:2: error: call to undeclared function >> 'paravirt_enter_mmap'; ISO C99 and later do not support implicit function >> declarations [-Wimplicit-function-declaration] 225 | paravirt_enter_mmap(mm); | ^ >> arch/x86/include/asm/mmu_context.h:232:2: error: call to undeclared function >> 'paravirt_arch_exit_mmap'; ISO C99 and later do not support implicit >> function declarations [-Wimplicit-function-declaration] 232 | paravirt_arch_exit_mmap(mm); | ^ arch/x86/include/asm/mmu_context.h:232:2: note: did you mean 'ldt_arch_exit_mmap'? arch/x86/include/asm/mmu_context.h:61:6: note: 'ldt_arch_exit_mmap' declared here 61 | void ldt_arch_exit_mmap(struct mm_struct *mm); | ^ >> arch/x86/mm/init.c:827:2: error: call to undeclared function >> 'paravirt_enter_mmap'; ISO C99 and later do not support implicit function >> declarations [-Wimplicit-function-declaration] 827 | paravirt_enter_mmap(text_poke_mm); | ^ 3 errors generated. vim +/paravirt_enter_mmap +225 arch/x86/include/asm/mmu_context.h a31e184e4f6996 Dave Hansen 2019-01-02 221 c10e83f598d080 Thomas Gleixner 2017-12-14 222 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) a1ea1c032b8f8c Dave Hansen 2014-11-18 223 { a31e184e4f6996 Dave Hansen 2019-01-02 224 arch_dup_pkeys(oldmm, mm); c9ae1b10d95610 Juergen Gross 2023-02-07 @225 paravirt_enter_mmap(mm); 82721d8b25d76c Kirill A. Shutemov 2023-03-12 226 dup_lam(oldmm, mm); a4828f81037f49 Thomas Gleixner 2017-12-14 227 return ldt_dup_context(oldmm, mm); a1ea1c032b8f8c Dave Hansen 2014-11-18 228 } a1ea1c032b8f8c Dave Hansen 2014-11-18 229 a1ea1c032b8f8c Dave Hansen 2014-11-18 230 static inline void arch_exit_mmap(struct mm_struct *mm) a1ea1c032b8f8c Dave Hansen 2014-11-18 231 { a1ea1c032b8f8c Dave Hansen 2014-11-18 @232 paravirt_arch_exit_mmap(mm); f55f0501cbf65e Andy Lutomirski 2017-12-12 233 ldt_arch_exit_mmap(mm); a1ea1c032b8f8c Dave Hansen 2014-11-18 234 } a1ea1c032b8f8c Dave Hansen 2014-11-18 235 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki