Re: [PATCH v1 2/2] PCI: eic7700: Add Eswin eic7700 PCIe host controller driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on pci/next]
[also build test ERROR on pci/for-linus linus/master v6.15-rc6 next-20250516]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/zhangsenchuan-eswincomputing-com/dt-bindings-PCI-eic7700-Add-Eswin-eic7700-PCIe-host-controller/20250516-174445
base:   https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link:    https://lore.kernel.org/r/20250516094315.179-1-zhangsenchuan%40eswincomputing.com
patch subject: [PATCH v1 2/2] PCI: eic7700: Add Eswin eic7700 PCIe host controller driver
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20250517/202505170506.s78iuxFL-lkp@xxxxxxxxx/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250517/202505170506.s78iuxFL-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505170506.s78iuxFL-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from include/linux/printk.h:6,
                    from include/linux/kernel.h:31,
                    from include/linux/clk.h:13,
                    from drivers/pci/controller/dwc/pcie-eic7700.c:11:
>> drivers/pci/controller/dwc/pcie-eic7700.c:427:28: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [-Wincompatible-pointer-types]
     427 |         .remove = __exit_p(eswin_pcie_remove),
         |                            ^~~~~~~~~~~~~~~~~
   include/linux/init.h:395:21: note: in definition of macro '__exit_p'
     395 | #define __exit_p(x) x
         |                     ^
   drivers/pci/controller/dwc/pcie-eic7700.c:427:28: note: (near initialization for 'eswin_pcie_driver.remove')
     427 |         .remove = __exit_p(eswin_pcie_remove),
         |                            ^~~~~~~~~~~~~~~~~
   include/linux/init.h:395:21: note: in definition of macro '__exit_p'
     395 | #define __exit_p(x) x
         |                     ^


vim +427 drivers/pci/controller/dwc/pcie-eic7700.c

   418	
   419	static struct platform_driver eswin_pcie_driver = {
   420		.driver = {
   421				.name = "eic7700-pcie",
   422				.of_match_table = eswin_pcie_of_match,
   423				.suppress_bind_attrs = true,
   424				.pm = &eswin_pcie_pm_ops,
   425		},
   426		.probe = eswin_pcie_probe,
 > 427		.remove = __exit_p(eswin_pcie_remove),
   428		.shutdown = eswin_pcie_shutdown,
   429	};
   430	

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




[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