[driver-core:const_driver 16/23] drivers/tc/tc-driver.c:100:19: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer 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:   b411bfe8b70c2b8590e05378a00e198d72214635
commit: 86c8a04fc60e4241b0088328cd0455726bf97dba [16/23] driver core: have match() callback in struct bus_type take a const *
config: mips-decstation_r4k_defconfig (https://download.01.org/0day-ci/archive/20240616/202406160508.Gcwjzku0-lkp@xxxxxxxxx/config)
compiler: mipsel-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240616/202406160508.Gcwjzku0-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/202406160508.Gcwjzku0-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/tc/tc-driver.c:100:19: error: initialization of 'int (*)(struct device *, const struct device_driver *)' from incompatible pointer type 'int (*)(struct device *, struct device_driver *)' [-Werror=incompatible-pointer-types]
     100 |         .match  = tc_bus_match,
         |                   ^~~~~~~~~~~~
   drivers/tc/tc-driver.c:100:19: note: (near initialization for 'tc_bus_type.match')
   cc1: some warnings being treated as errors


vim +100 drivers/tc/tc-driver.c

b454cc6636d254 Maciej W. Rozycki   2007-02-05   97  
aaf2230036b709 Ricardo B. Marliere 2024-02-13   98  const struct bus_type tc_bus_type = {
b454cc6636d254 Maciej W. Rozycki   2007-02-05   99  	.name	= "tc",
b454cc6636d254 Maciej W. Rozycki   2007-02-05 @100  	.match	= tc_bus_match,
b454cc6636d254 Maciej W. Rozycki   2007-02-05  101  };
b454cc6636d254 Maciej W. Rozycki   2007-02-05  102  EXPORT_SYMBOL(tc_bus_type);
b454cc6636d254 Maciej W. Rozycki   2007-02-05  103  

:::::: The code at line 100 was first introduced by commit
:::::: b454cc6636d254fbf6049b73e9560aee76fb04a3 [TC] MIPS: TURBOchannel update to the driver model

:::::: TO: Maciej W. Rozycki <macro@xxxxxxxxxxxxxx>
:::::: 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