[openeuler:openEuler-1.0-LTS 1755/1755] arch/x86/kernel/apic/apic.c:2202: warning: Function parameter or member 'apicid' not described in 'apic_id_is_primary_thread'

tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: 8723dc57de6371f9cc8764e15d4cc9e57ae592ee commit: d0055f351e647f33f3b0329bff022213bf8aa085 [1755/1755] x86/smp: fix non-SMP broken build due to redefinition of apic_id_is_primary_thread config: x86_64-buildonly-randconfig-2002-20250811 (https://download.01.org/0day-ci/archive/20250814/202508140748.SO4qfB0e-lkp@i...) 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/20250814/202508140748.SO4qfB0e-lkp@i...) 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 <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202508140748.SO4qfB0e-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/kernel/apic/apic.c:1040:28: warning: no previous prototype for function 'smp_apic_timer_interrupt' [-Wmissing-prototypes] 1040 | __visible void __irq_entry smp_apic_timer_interrupt(struct pt_regs *regs) | ^ arch/x86/kernel/apic/apic.c:1040:11: note: declare 'static' if the function is not intended to be used outside of this translation unit 1040 | __visible void __irq_entry smp_apic_timer_interrupt(struct pt_regs *regs) | ^ | static arch/x86/kernel/apic/apic.c:2021:28: warning: no previous prototype for function 'smp_spurious_interrupt' [-Wmissing-prototypes] 2021 | __visible void __irq_entry smp_spurious_interrupt(struct pt_regs *regs) | ^ arch/x86/kernel/apic/apic.c:2021:11: note: declare 'static' if the function is not intended to be used outside of this translation unit 2021 | __visible void __irq_entry smp_spurious_interrupt(struct pt_regs *regs) | ^ | static arch/x86/kernel/apic/apic.c:2051:28: warning: no previous prototype for function 'smp_error_interrupt' [-Wmissing-prototypes] 2051 | __visible void __irq_entry smp_error_interrupt(struct pt_regs *regs) | ^ arch/x86/kernel/apic/apic.c:2051:11: note: declare 'static' if the function is not intended to be used outside of this translation unit 2051 | __visible void __irq_entry smp_error_interrupt(struct pt_regs *regs) | ^ | static 3 warnings generated.
arch/x86/kernel/apic/apic.c:2202: warning: Function parameter or member 'apicid' not described in 'apic_id_is_primary_thread' arch/x86/kernel/apic/apic.c:2202: warning: Excess function parameter 'id' description in 'apic_id_is_primary_thread'
vim +2202 arch/x86/kernel/apic/apic.c 8f54969dc8d670 Gu Zheng 2016-08-25 2195 d0055f351e647f Vlastimil Babka 2018-08-14 2196 #ifdef CONFIG_SMP 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2197 /** 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2198 * apic_id_is_primary_thread - Check whether APIC ID belongs to a primary thread 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2199 * @id: APIC ID to check 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2200 */ 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2201 bool apic_id_is_primary_thread(unsigned int apicid) 6a4d2657e048f0 Thomas Gleixner 2018-05-29 @2202 { 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2203 u32 mask; 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2204 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2205 if (smp_num_siblings == 1) 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2206 return true; 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2207 /* Isolate the SMT bit(s) in the APICID and check for 0 */ 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2208 mask = (1U << (fls(smp_num_siblings) - 1)) - 1; 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2209 return !(apicid & mask); 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2210 } d0055f351e647f Vlastimil Babka 2018-08-14 2211 #endif 6a4d2657e048f0 Thomas Gleixner 2018-05-29 2212 :::::: The code at line 2202 was first introduced by commit :::::: 6a4d2657e048f096c7ffcad254010bd94891c8c0 x86/smp: Provide topology_is_primary_thread() :::::: TO: Thomas Gleixner <tglx@linutronix.de> :::::: CC: Thomas Gleixner <tglx@linutronix.de> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot