All of lore.kernel.org
 help / color / mirror / Atom feed
* [l1k:doe 11/23] drivers/pci/pci.h:789:20: warning: conflicting types for 'pci_doe_disconnected'; have 'void(struct pci_dev *)'
@ 2023-02-03 21:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-03 21:39 UTC (permalink / raw)
  To: Lukas Wunner; +Cc: oe-kbuild-all

tree:   https://github.com/l1k/linux doe
head:   167c147eed6cb9d32a5f27c0aa5ac8d07e960982
commit: cad83afa09817cb77ae9b53ad992c8894b6ecdb5 [11/23] PCI/DOE: Create mailboxes on device enumeration
config: arc-defconfig (https://download.01.org/0day-ci/archive/20230204/202302040558.b5kMgC86-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 12.1.0
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/cad83afa09817cb77ae9b53ad992c8894b6ecdb5
        git remote add l1k https://github.com/l1k/linux
        git fetch --no-tags l1k doe
        git checkout cad83afa09817cb77ae9b53ad992c8894b6ecdb5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/

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

   In file included from drivers/pci/of.c:16:
   drivers/pci/pci.h: In function 'pci_dev_set_disconnected':
   drivers/pci/pci.h:361:9: error: implicit declaration of function 'pci_doe_disconnected'; did you mean 'pci_dev_set_disconnected'? [-Werror=implicit-function-declaration]
     361 |         pci_doe_disconnected(dev);
         |         ^~~~~~~~~~~~~~~~~~~~
         |         pci_dev_set_disconnected
   drivers/pci/pci.h: At top level:
>> drivers/pci/pci.h:789:20: warning: conflicting types for 'pci_doe_disconnected'; have 'void(struct pci_dev *)'
     789 | static inline void pci_doe_disconnected(struct pci_dev *pdev) { }
         |                    ^~~~~~~~~~~~~~~~~~~~
   drivers/pci/pci.h:789:20: error: static declaration of 'pci_doe_disconnected' follows non-static declaration
   drivers/pci/pci.h:361:9: note: previous implicit declaration of 'pci_doe_disconnected' with type 'void(struct pci_dev *)'
     361 |         pci_doe_disconnected(dev);
         |         ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +789 drivers/pci/pci.h

   781	
   782	#ifdef CONFIG_PCI_DOE
   783	void pci_doe_init(struct pci_dev *pdev);
   784	void pci_doe_destroy(struct pci_dev *pdev);
   785	void pci_doe_disconnected(struct pci_dev *pdev);
   786	#else
   787	static inline void pci_doe_init(struct pci_dev *pdev) { }
   788	static inline void pci_doe_destroy(struct pci_dev *pdev) { }
 > 789	static inline void pci_doe_disconnected(struct pci_dev *pdev) { }
   790	#endif
   791	

-- 
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-03 21:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-03 21:39 [l1k:doe 11/23] drivers/pci/pci.h:789:20: warning: conflicting types for 'pci_doe_disconnected'; have 'void(struct pci_dev *)' 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.