All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:x86/topology 30/38] arch/x86/kernel/apic/x2apic_phys.c:108:5: warning: no previous prototype for 'x2apic_apic_id_valid'
Date: Sun, 16 Jul 2023 03:03:09 +0800	[thread overview]
Message-ID: <202307160209.TJBfCev3-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-07-15 19:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202307160209.TJBfCev3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.