[pci:pci/misc 10/10] include/linux/pci.h:2312:20: error: function 'pci_alert' can never be inlined because it uses variable argument lists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/misc
head:   ee87b19d48b24d7e63a6cffc4c4a30a7ff687ec8
commit: ee87b19d48b24d7e63a6cffc4c4a30a7ff687ec8 [10/10] PCI: Replace dev_printk() with pci_printk()
config: i386-randconfig-x009-201801 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout ee87b19d48b24d7e63a6cffc4c4a30a7ff687ec8
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/pci/pci-sysfs.c:21:0:
   drivers/pci/pci-sysfs.c: In function 'pci_alert':
>> include/linux/pci.h:2312:20: error: function 'pci_alert' can never be inlined because it uses variable argument lists
    static inline void pci_alert(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~~
   drivers/pci/pci-sysfs.c: In function 'pci_info':
   include/linux/pci.h:2348:20: error: function 'pci_info' can never be inlined because it uses variable argument lists
    static inline void pci_info(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~
--
   In file included from drivers//pci/pci-sysfs.c:21:0:
   drivers//pci/pci-sysfs.c: In function 'pci_alert':
>> include/linux/pci.h:2312:20: error: function 'pci_alert' can never be inlined because it uses variable argument lists
    static inline void pci_alert(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~~
   drivers//pci/pci-sysfs.c: In function 'pci_info':
   include/linux/pci.h:2348:20: error: function 'pci_info' can never be inlined because it uses variable argument lists
    static inline void pci_info(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~

vim +/pci_alert +2312 include/linux/pci.h

23b183d48 Frederick Lawler 2017-12-18  2311  
23b183d48 Frederick Lawler 2017-12-18 @2312  static inline void pci_alert(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler 2017-12-18  2313  {
23b183d48 Frederick Lawler 2017-12-18  2314  	va_list argptr;
23b183d48 Frederick Lawler 2017-12-18  2315  
23b183d48 Frederick Lawler 2017-12-18  2316  	va_start(argptr, fmt);
23b183d48 Frederick Lawler 2017-12-18  2317  	dev_alert(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler 2017-12-18  2318  	va_end(argptr);
23b183d48 Frederick Lawler 2017-12-18  2319  }
23b183d48 Frederick Lawler 2017-12-18  2320  

:::::: The code at line 2312 was first introduced by commit
:::::: 23b183d487a90438b4e4bed25f30df0194a83270 PCI: Add PCI-specific dev_printk() wrappers

:::::: TO: Frederick Lawler <fred@xxxxxxxxxxxx>
:::::: CC: Bjorn Helgaas <helgaas@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux