All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:doe 12/24] drivers/pci/doe.c:695:13: warning: format specifies type 'int' but the argument has type 'long'
@ 2023-02-05 17:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-05 17:37 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux doe
head:   7a7fab915bd483188cd656e0dca0e1e6619c190a
commit: 33c3744e3baccbe63b302640bdc1c543b5b20d27 [12/24] PCI/DOE: Create mailboxes on device enumeration
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20230206/202302060106.cCk8YR5a-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/l1k/linux/commit/33c3744e3baccbe63b302640bdc1c543b5b20d27
        git remote add l1k https://github.com/l1k/linux
        git fetch --no-tags l1k doe
        git checkout 33c3744e3baccbe63b302640bdc1c543b5b20d27
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/pci/

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

All warnings (new ones prefixed by >>):

>> drivers/pci/doe.c:695:13: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                                   offset, PTR_ERR(doe_mb));
                                           ^~~~~~~~~~~~~~~
   include/linux/pci.h:2529:65: note: expanded from macro 'pci_err'
   #define pci_err(pdev, fmt, arg...)      dev_err(&(pdev)->dev, fmt, ##arg)
                                                                 ~~~    ^~~
   include/linux/dev_printk.h:144:65: note: expanded from macro 'dev_err'
           dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                                  ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
                   _p_func(dev, fmt, ##__VA_ARGS__);                       \
                                ~~~    ^~~~~~~~~~~
   1 warning generated.


vim +695 drivers/pci/doe.c

   681	
   682	void pci_doe_init(struct pci_dev *pdev)
   683	{
   684		struct pci_doe_mb *doe_mb;
   685		u16 offset = 0;
   686		int rc;
   687	
   688		xa_init(&pdev->doe_mbs);
   689	
   690		while ((offset = pci_find_next_ext_capability(pdev, offset,
   691							      PCI_EXT_CAP_ID_DOE))) {
   692			doe_mb = pci_doe_create_mb(pdev, offset);
   693			if (IS_ERR(doe_mb)) {
   694				pci_err(pdev, "[%x] failed to create mailbox: %d\n",
 > 695					offset, PTR_ERR(doe_mb));
   696				continue;
   697			}
   698	
   699			rc = xa_insert(&pdev->doe_mbs, offset, doe_mb, GFP_KERNEL);
   700			if (rc) {
   701				pci_err(pdev, "[%x] failed to insert mailbox: %d\n",
   702					offset, rc);
   703				pci_doe_destroy_mb(doe_mb);
   704			}
   705		}
   706	}
   707	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-05 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-05 17:37 [l1k:doe 12/24] drivers/pci/doe.c:695:13: warning: format specifies type 'int' but the argument has type 'long' kernel test robot

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.