* [tglx-devel:x86/topology 30/38] arch/x86/kernel/apic/x2apic_phys.c:108:5: warning: no previous prototype for 'x2apic_apic_id_valid'
@ 2023-07-15 19:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-15 19:03 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/topology
head: 59df0262d2da163a8281c806688cc62e4d919908
commit: e2f40f2fdd6f60db02638b295a11feaee036fe70 [30/38] x86/apic: Sanitize APID ID range validation
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20230716/202307160209.TJBfCev3-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230716/202307160209.TJBfCev3-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307160209.TJBfCev3-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/apic/x2apic_phys.c:11:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__refdatao'
11 | static u32 x2apic_max_apicid __refdatao;
| ^~~~~~~~~~
arch/x86/kernel/apic/x2apic_phys.c: In function 'x2apic_set_max_apicid':
arch/x86/kernel/apic/x2apic_phys.c:15:9: error: 'x2apic_max_apicid' undeclared (first use in this function); did you mean 'x2apic_set_apic_id'?
15 | x2apic_max_apicid = apicid;
| ^~~~~~~~~~~~~~~~~
| x2apic_set_apic_id
arch/x86/kernel/apic/x2apic_phys.c:15:9: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/apic/x2apic_phys.c: In function 'x2apic_phys_probe':
arch/x86/kernel/apic/x2apic_phys.c:99:40: error: 'x2apic_max_apicid' undeclared (first use in this function); did you mean 'x2apic_set_apic_id'?
99 | apic_x2apic_phys.max_apic_id = x2apic_max_apicid;
| ^~~~~~~~~~~~~~~~~
| x2apic_set_apic_id
arch/x86/kernel/apic/x2apic_phys.c: At top level:
>> arch/x86/kernel/apic/x2apic_phys.c:108:5: warning: no previous prototype for 'x2apic_apic_id_valid' [-Wmissing-prototypes]
108 | int x2apic_apic_id_valid(u32 apicid)
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/apic/x2apic_phys.c: In function 'x2apic_apic_id_valid':
arch/x86/kernel/apic/x2apic_phys.c:110:13: error: 'x2apic_max_apicid' undeclared (first use in this function); did you mean 'x2apic_set_apic_id'?
110 | if (x2apic_max_apicid && apicid > x2apic_max_apicid)
| ^~~~~~~~~~~~~~~~~
| x2apic_set_apic_id
vim +/x2apic_apic_id_valid +108 arch/x86/kernel/apic/x2apic_phys.c
9ebd680bd029a9 Suresh Siddha 2011-05-19 106
981c2eac1cb97c Thomas Gleixner 2017-09-13 107 /* Common x2apic functions, also used by x2apic_cluster */
a774635db5c430 Li RongQing 2018-04-10 @108 int x2apic_apic_id_valid(u32 apicid)
981c2eac1cb97c Thomas Gleixner 2017-09-13 109 {
26573a97746c7a David Woodhouse 2020-10-24 110 if (x2apic_max_apicid && apicid > x2apic_max_apicid)
26573a97746c7a David Woodhouse 2020-10-24 111 return 0;
26573a97746c7a David Woodhouse 2020-10-24 112
981c2eac1cb97c Thomas Gleixner 2017-09-13 113 return 1;
981c2eac1cb97c Thomas Gleixner 2017-09-13 114 }
981c2eac1cb97c Thomas Gleixner 2017-09-13 115
:::::: The code at line 108 was first introduced by commit
:::::: a774635db5c430cbf21fa5d2f2df3d23aaa8e782 x86/apic: Fix signedness bug in APIC ID validity checks
:::::: TO: Li RongQing <lirongqing@baidu.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-15 19:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-15 19:03 [tglx-devel:x86/topology 30/38] arch/x86/kernel/apic/x2apic_phys.c:108:5: warning: no previous prototype for 'x2apic_apic_id_valid' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.