Skip to contentSkip to conversation

drivers/staging/rtl8192e/rtl8192e/rtl_pci.c:31:6: error: conflicting types for 'rtl92e_check_adapter'; have 'bool(struct pci_dev *, struct net_device *)' {aka '_Bool(struct pci_dev *, struct net_device *)'}

PATCH kernel test robot 1 participant 1 message Jun 25, 2024

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   921190437a4827667cceef10202b2150571ebe5c
commit: 7dff0b27d9c842f88149bf611cbc0b59be1dcd3c [34/59] staging: rtl8192e: Remove unnecessary pre-declaration of struct net_device
config: arm64-randconfig-001-20240625 (https://download.01.org/0day-ci/archive/20240625/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240625/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

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

In file included from drivers/staging/rtl8192e/rtl8192e/rtl_pci.c:10:

>> drivers/staging/rtl8192e/rtl8192e/rtl_pci.h:16:56: warning: 'struct net_device' declared inside parameter list will not be visible outside of this definition or declaration
      16 | bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
         |                                                        ^~~~~~~~~~
>> drivers/staging/rtl8192e/rtl8192e/rtl_pci.c:31:6: error: conflicting types for 'rtl92e_check_adapter'; have 'bool(struct pci_dev *, struct net_device *)' {aka '_Bool(struct pci_dev *, struct net_device *)'}
      31 | bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev)
         |      ^~~~~~~~~~~~~~~~~~~~
   drivers/staging/rtl8192e/rtl8192e/rtl_pci.h:16:6: note: previous declaration of 'rtl92e_check_adapter' with type 'bool(struct pci_dev *, struct net_device *)' {aka '_Bool(struct pci_dev *, struct net_device *)'}
      16 | bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
         |      ^~~~~~~~~~~~~~~~~~~~

vim +31 drivers/staging/rtl8192e/rtl8192e/rtl_pci.c

94a799425eee82 drivers/staging/rtl8192e/rtl_pci.c Larry Finger 2011-08-23 30
e250592ed93a12 drivers/staging/rtl8192e/rtl8192e/rtl_pci.c Mateusz Kulikowski 2015-07-19 @31 bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev)

:::::: The code at line 31 was first introduced by commit
:::::: e250592ed93a12eecc42ed590f5a8245a20ab994 staging: rtl8192e: Rename rtl8192_pci_findadapter

:::::: TO: Mateusz Kulikowski <[email protected]> :::::: CC: Greg Kroah-Hartman <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki