[pci:pci/misc 10/10] include/linux/pci.h:2321:20: error: function 'pci_err' 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-x019-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/quirks.c:18:0:
   drivers//pci/quirks.c: In function 'pci_err':
>> include/linux/pci.h:2321:20: error: function 'pci_err' can never be inlined because it uses variable argument lists
    static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
   drivers//pci/quirks.c: In function 'pci_warn':
>> include/linux/pci.h:2339:20: error: function 'pci_warn' can never be inlined because it uses variable argument lists
    static inline void pci_warn(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~
   drivers//pci/quirks.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, ...)
                       ^~~~~~~~
   drivers//pci/quirks.c: In function 'pci_dbg':
>> include/linux/pci.h:2357:20: error: function 'pci_dbg' can never be inlined because it uses variable argument lists
    static inline void pci_dbg(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
--
   In file included from drivers//pci/pci-acpi.c:13:0:
   drivers//pci/pci-acpi.c: In function 'pci_dbg':
>> include/linux/pci.h:2357:20: error: function 'pci_dbg' can never be inlined because it uses variable argument lists
    static inline void pci_dbg(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
--
   In file included from drivers//pci/access.c:2:0:
   drivers//pci/access.c: In function 'pci_warn':
>> include/linux/pci.h:2339:20: error: function 'pci_warn' can never be inlined because it uses variable argument lists
    static inline void pci_warn(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~
--
   In file included from drivers//pci/bus.c:12:0:
   drivers//pci/bus.c: In function 'pci_printk':
>> include/linux/pci.h:2284:20: error: function 'pci_printk' can never be inlined because it uses variable argument lists
    static inline void pci_printk(const char *level, const struct pci_dev *pdev,
                       ^~~~~~~~~~
   drivers//pci/bus.c: In function 'pci_warn':
>> include/linux/pci.h:2339:20: error: function 'pci_warn' can never be inlined because it uses variable argument lists
    static inline void pci_warn(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~
--
   In file included from drivers//pci/probe.c:8:0:
   drivers//pci/probe.c: In function 'pci_printk':
>> include/linux/pci.h:2284:20: error: function 'pci_printk' can never be inlined because it uses variable argument lists
    static inline void pci_printk(const char *level, const struct pci_dev *pdev,
                       ^~~~~~~~~~
   drivers//pci/probe.c: In function 'pci_err':
>> include/linux/pci.h:2321:20: error: function 'pci_err' can never be inlined because it uses variable argument lists
    static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
   drivers//pci/probe.c: In function 'pci_warn':
>> include/linux/pci.h:2339:20: error: function 'pci_warn' can never be inlined because it uses variable argument lists
    static inline void pci_warn(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~
   drivers//pci/probe.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, ...)
                       ^~~~~~~~
   drivers//pci/probe.c: In function 'pci_dbg':
>> include/linux/pci.h:2357:20: error: function 'pci_dbg' can never be inlined because it uses variable argument lists
    static inline void pci_dbg(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
--
   In file included from include/linux/of_pci.h:5:0,
                    from drivers//pci/pci.c:16:
   drivers//pci/pci.c: In function 'pci_printk':
>> include/linux/pci.h:2284:20: error: function 'pci_printk' can never be inlined because it uses variable argument lists
    static inline void pci_printk(const char *level, const struct pci_dev *pdev,
                       ^~~~~~~~~~
   drivers//pci/pci.c: In function 'pci_err':
>> include/linux/pci.h:2321:20: error: function 'pci_err' can never be inlined because it uses variable argument lists
    static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
   drivers//pci/pci.c: In function 'pci_warn':
>> include/linux/pci.h:2339:20: error: function 'pci_warn' can never be inlined because it uses variable argument lists
    static inline void pci_warn(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~
   drivers//pci/pci.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, ...)
                       ^~~~~~~~
   drivers//pci/pci.c: In function 'pci_dbg':
>> include/linux/pci.h:2357:20: error: function 'pci_dbg' can never be inlined because it uses variable argument lists
    static inline void pci_dbg(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_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/rom.c:11:0:
   drivers//pci/rom.c: In function 'pci_err':
>> include/linux/pci.h:2321:20: error: function 'pci_err' can never be inlined because it uses variable argument lists
    static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
--
   In file included from drivers//pci/setup-res.c:22:0:
   drivers//pci/setup-res.c: In function 'pci_err':
>> include/linux/pci.h:2321:20: error: function 'pci_err' can never be inlined because it uses variable argument lists
    static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
   drivers//pci/setup-res.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/irq.c:13:0:
   drivers//pci/irq.c: In function 'pci_err':
>> include/linux/pci.h:2321:20: error: function 'pci_err' can never be inlined because it uses variable argument lists
    static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
--
   In file included from drivers//pci/setup-bus.c:23:0:
   drivers//pci/setup-bus.c: In function 'pci_printk':
>> include/linux/pci.h:2284:20: error: function 'pci_printk' can never be inlined because it uses variable argument lists
    static inline void pci_printk(const char *level, const struct pci_dev *pdev,
                       ^~~~~~~~~~
   drivers//pci/setup-bus.c: In function 'pci_err':
>> include/linux/pci.h:2321:20: error: function 'pci_err' can never be inlined because it uses variable argument lists
    static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
   drivers//pci/setup-bus.c: In function 'pci_warn':
>> include/linux/pci.h:2339:20: error: function 'pci_warn' can never be inlined because it uses variable argument lists
    static inline void pci_warn(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~~
   drivers//pci/setup-bus.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, ...)
                       ^~~~~~~~
   drivers//pci/setup-bus.c: In function 'pci_dbg':
>> include/linux/pci.h:2357:20: error: function 'pci_dbg' can never be inlined because it uses variable argument lists
    static inline void pci_dbg(const struct pci_dev *pdev, const char *fmt, ...)
                       ^~~~~~~
..

vim +/pci_err +2321 include/linux/pci.h

bc4b024a8 Christoph Hellwig 2016-03-07  2283  
23b183d48 Frederick Lawler  2017-12-18 @2284  static inline void pci_printk(const char *level, const struct pci_dev *pdev,
23b183d48 Frederick Lawler  2017-12-18  2285  			      const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2286  {
23b183d48 Frederick Lawler  2017-12-18  2287  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2288  
23b183d48 Frederick Lawler  2017-12-18  2289  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2290  	dev_printk(level, &(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2291  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2292  }
23b183d48 Frederick Lawler  2017-12-18  2293  
23b183d48 Frederick Lawler  2017-12-18  2294  static inline void pci_emerg(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2295  {
23b183d48 Frederick Lawler  2017-12-18  2296  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2297  
23b183d48 Frederick Lawler  2017-12-18  2298  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2299  	dev_emerg(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2300  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2301  }
23b183d48 Frederick Lawler  2017-12-18  2302  
23b183d48 Frederick Lawler  2017-12-18  2303  static inline void pci_crit(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2304  {
23b183d48 Frederick Lawler  2017-12-18  2305  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2306  
23b183d48 Frederick Lawler  2017-12-18  2307  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2308  	dev_crit(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2309  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2310  }
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  
23b183d48 Frederick Lawler  2017-12-18 @2321  static inline void pci_err(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2322  {
23b183d48 Frederick Lawler  2017-12-18  2323  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2324  
23b183d48 Frederick Lawler  2017-12-18  2325  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2326  	dev_err(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2327  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2328  }
23b183d48 Frederick Lawler  2017-12-18  2329  
23b183d48 Frederick Lawler  2017-12-18  2330  static inline void pci_notice(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2331  {
23b183d48 Frederick Lawler  2017-12-18  2332  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2333  
23b183d48 Frederick Lawler  2017-12-18  2334  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2335  	dev_notice(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2336  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2337  }
23b183d48 Frederick Lawler  2017-12-18  2338  
23b183d48 Frederick Lawler  2017-12-18 @2339  static inline void pci_warn(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2340  {
23b183d48 Frederick Lawler  2017-12-18  2341  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2342  
23b183d48 Frederick Lawler  2017-12-18  2343  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2344  	dev_warn(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2345  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2346  }
23b183d48 Frederick Lawler  2017-12-18  2347  
23b183d48 Frederick Lawler  2017-12-18 @2348  static inline void pci_info(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2349  {
23b183d48 Frederick Lawler  2017-12-18  2350  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2351  
23b183d48 Frederick Lawler  2017-12-18  2352  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2353  	dev_info(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2354  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2355  }
23b183d48 Frederick Lawler  2017-12-18  2356  
23b183d48 Frederick Lawler  2017-12-18 @2357  static inline void pci_dbg(const struct pci_dev *pdev, const char *fmt, ...)
23b183d48 Frederick Lawler  2017-12-18  2358  {
23b183d48 Frederick Lawler  2017-12-18  2359  	va_list argptr;
23b183d48 Frederick Lawler  2017-12-18  2360  
23b183d48 Frederick Lawler  2017-12-18  2361  	va_start(argptr, fmt);
23b183d48 Frederick Lawler  2017-12-18  2362  	dev_dbg(&(pdev)->dev, fmt, argptr);
23b183d48 Frederick Lawler  2017-12-18  2363  	va_end(argptr);
23b183d48 Frederick Lawler  2017-12-18  2364  }
23b183d48 Frederick Lawler  2017-12-18  2365  

:::::: The code at line 2321 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