All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lukas Wunner <lukas@wunner.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [l1k:doe 11/23] drivers/pci/pci.h:789:20: warning: conflicting types for 'pci_doe_disconnected'; have 'void(struct pci_dev *)'
Date: Sat, 4 Feb 2023 05:39:47 +0800	[thread overview]
Message-ID: <202302040558.b5kMgC86-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-02-03 21:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202302040558.b5kMgC86-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=lukas@wunner.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.