Linux PCI subsystem development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: kbuild-all@lists.01.org, linux-pci@vger.kernel.org,
	Bjorn Helgaas <helgaas@kernel.org>
Subject: [pci:pci/misc 7/7] include/linux/pci.h:1725:54: error: parameter name omitted
Date: Sat, 21 Aug 2021 10:44:06 +0800	[thread overview]
Message-ID: <202108211050.dQMdCDWM-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3717 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/misc
head:   81e2ce35df9102989cefe180f41d78dd7fb8c9b9
commit: 81e2ce35df9102989cefe180f41d78dd7fb8c9b9 [7/7] PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?id=81e2ce35df9102989cefe180f41d78dd7fb8c9b9
        git remote add pci https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
        git fetch --no-tags pci pci/misc
        git checkout 81e2ce35df9102989cefe180f41d78dd7fb8c9b9
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/setup.c:18:
   include/linux/pci.h: In function '__pci_register_driver':
>> include/linux/pci.h:1725:54: error: parameter name omitted
    1725 | static inline int __must_check __pci_register_driver(struct pci_driver *,
         |                                                      ^~~~~~~~~~~~~~~~~~~
   include/linux/pci.h:1726:12: error: parameter name omitted
    1726 |            struct module *,
         |            ^~~~~~~~~~~~~~~
--
   In file included from arch/x86/kernel/cpu/cacheinfo.c:17:
   include/linux/pci.h: In function '__pci_register_driver':
>> include/linux/pci.h:1725:54: error: parameter name omitted
    1725 | static inline int __must_check __pci_register_driver(struct pci_driver *,
         |                                                      ^~~~~~~~~~~~~~~~~~~
   include/linux/pci.h:1726:12: error: parameter name omitted
    1726 |            struct module *,
         |            ^~~~~~~~~~~~~~~
   arch/x86/kernel/cpu/cacheinfo.c: In function 'init_intel_cacheinfo':
   arch/x86/kernel/cpu/cacheinfo.c:727:26: warning: variable 'l3_id' set but not used [-Wunused-but-set-variable]
     727 |  unsigned int l2_id = 0, l3_id = 0, num_threads_sharing, index_msb;
         |                          ^~~~~
   arch/x86/kernel/cpu/cacheinfo.c:727:15: warning: variable 'l2_id' set but not used [-Wunused-but-set-variable]
     727 |  unsigned int l2_id = 0, l3_id = 0, num_threads_sharing, index_msb;
         |               ^~~~~


vim +1725 include/linux/pci.h

  1718	
  1719	static inline void pci_set_master(struct pci_dev *dev) { }
  1720	static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; }
  1721	static inline void pci_disable_device(struct pci_dev *dev) { }
  1722	static inline int pcim_enable_device(struct pci_dev *pdev) { return -EIO; }
  1723	static inline int pci_assign_resource(struct pci_dev *dev, int i)
  1724	{ return -EBUSY; }
> 1725	static inline int __must_check __pci_register_driver(struct pci_driver *,
  1726							     struct module *,
  1727							     const char *mod_name)
  1728	{ return 0; }
  1729	static inline int pci_register_driver(struct pci_driver *drv)
  1730	{ return 0; }
  1731	static inline void pci_unregister_driver(struct pci_driver *drv) { }
  1732	static inline u8 pci_find_capability(struct pci_dev *dev, int cap)
  1733	{ return 0; }
  1734	static inline int pci_find_next_capability(struct pci_dev *dev, u8 post,
  1735						   int cap)
  1736	{ return 0; }
  1737	static inline int pci_find_ext_capability(struct pci_dev *dev, int cap)
  1738	{ return 0; }
  1739	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7442 bytes --]

             reply	other threads:[~2021-08-21  2:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21  2:44 kernel test robot [this message]
2021-08-23  7:35 ` [pci:pci/misc 7/7] include/linux/pci.h:1725:54: error: parameter name omitted Andy Shevchenko
2021-08-23  7:47   ` Andy Shevchenko

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=202108211050.dQMdCDWM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=helgaas@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-pci@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox