[driver-core:const_driver 3/10] drivers/bus/mips_cdmm.c:124:12: error: incompatible function pointer types initializing 'int (*)(struct device *, const struct device_driver *)' with an expression of type 'int (struct device *, struct device_driver *)'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git const_driver
head:   f4b9252a85a6ce543ba43ddce935a318ed04a618
commit: 1c2cb4152270681e66c4db7415254ca450068b22 [3/10] driver core: have match() callback in struct bus_type take a const *
config: mips-randconfig-r123-20240622 (https://download.01.org/0day-ci/archive/20240622/202406220726.iLKR3tvS-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project ad79a14c9e5ec4a369eed4adf567c22cc029863f)
reproduce: (https://download.01.org/0day-ci/archive/20240622/202406220726.iLKR3tvS-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/202406220726.iLKR3tvS-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/bus/mips_cdmm.c:124:12: error: incompatible function pointer types initializing 'int (*)(struct device *, const struct device_driver *)' with an expression of type 'int (struct device *, struct device_driver *)' [-Wincompatible-function-pointer-types]
     124 |         .match          = mips_cdmm_match,
         |                           ^~~~~~~~~~~~~~~
   1 error generated.


vim +124 drivers/bus/mips_cdmm.c

8286ae03308c6f James Hogan         2015-03-25  120  
eac95d5ae4f872 Ricardo B. Marliere 2024-02-13  121  const struct bus_type mips_cdmm_bustype = {
8286ae03308c6f James Hogan         2015-03-25  122  	.name		= "cdmm",
8286ae03308c6f James Hogan         2015-03-25  123  	.dev_groups	= mips_cdmm_dev_groups,
8286ae03308c6f James Hogan         2015-03-25 @124  	.match		= mips_cdmm_match,
8286ae03308c6f James Hogan         2015-03-25  125  	.uevent		= mips_cdmm_uevent,
8286ae03308c6f James Hogan         2015-03-25  126  };
8286ae03308c6f James Hogan         2015-03-25  127  EXPORT_SYMBOL_GPL(mips_cdmm_bustype);
8286ae03308c6f James Hogan         2015-03-25  128  

:::::: The code at line 124 was first introduced by commit
:::::: 8286ae03308c6f97f346f9f8cb9174b04969add5 MIPS: Add CDMM bus support

:::::: TO: James Hogan <james.hogan@xxxxxxxxxx>
:::::: CC: Ralf Baechle <ralf@xxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux