[pci:pci/misc 9/10] include/linux/pci.h:2362:2: note: in expansion of macro 'dev_dbg'

[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: 23b183d487a90438b4e4bed25f30df0194a83270 [9/10] PCI: Add PCI-specific dev_printk() wrappers
config: i386-randconfig-x015-201801 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 23b183d487a90438b4e4bed25f30df0194a83270
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/printk.h:329:0,
                    from include/linux/kernel.h:14,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/video/fbdev/i810/i810_main.c:31:
   include/linux/pci.h: In function 'pci_dbg':
>> include/linux/dynamic_debug.h:80:13: error: initializer element is not constant
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:99:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
     DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_false, \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:133:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:1360:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
     ^~~~~~~~~~~~~~~
>> include/linux/pci.h:2362:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(&(pdev)->dev, fmt, argptr);
     ^~~~~~~
   include/linux/dynamic_debug.h:80:13: note: (near initialization for 'descriptor.format')
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:99:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
     DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_false, \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:133:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:1360:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
     ^~~~~~~~~~~~~~~
>> include/linux/pci.h:2362:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(&(pdev)->dev, fmt, argptr);
     ^~~~~~~
--
   In file included from include/linux/printk.h:329:0,
                    from include/linux/kernel.h:14,
                    from include/linux/list.h:9,
                    from include/linux/pci.h:26,
                    from include/linux/bcma/bcma.h:5,
                    from drivers//bcma/bcma_private.h:9,
                    from drivers//bcma/main.c:8:
   include/linux/pci.h: In function 'pci_dbg':
>> include/linux/dynamic_debug.h:80:13: error: initializer element is not constant
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:92:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
     DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_true, \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:133:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:1360:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
     ^~~~~~~~~~~~~~~
>> include/linux/pci.h:2362:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(&(pdev)->dev, fmt, argptr);
     ^~~~~~~
   include/linux/dynamic_debug.h:80:13: note: (near initialization for 'descriptor.format')
      .format = (fmt),    \
                ^
   include/linux/dynamic_debug.h:92:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA_KEY'
     DEFINE_DYNAMIC_DEBUG_METADATA_KEY(name, fmt, .key.dd_key_true, \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:133:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA'
     DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);  \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:1360:2: note: in expansion of macro 'dynamic_dev_dbg'
     dynamic_dev_dbg(dev, format, ##__VA_ARGS__); \
     ^~~~~~~~~~~~~~~
>> include/linux/pci.h:2362:2: note: in expansion of macro 'dev_dbg'
     dev_dbg(&(pdev)->dev, fmt, argptr);
     ^~~~~~~

vim +/dev_dbg +2362 include/linux/pci.h

  2356	
  2357	static inline void pci_dbg(const struct pci_dev *pdev, const char *fmt, ...)
  2358	{
  2359		va_list argptr;
  2360	
  2361		va_start(argptr, fmt);
> 2362		dev_dbg(&(pdev)->dev, fmt, argptr);
  2363		va_end(argptr);
  2364	}
  2365	

---
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