[rafael-pm:bleeding-edge 179/184] drivers/thermal/imx_thermal.c:385:26: error: initialization of 'int (*)(struct thermal_zone_device *, const struct thermal_trip *, int)' from incompatible pointer type 'int (*)(struct thermal_zone_device *, int, int)'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   87efced4091268c3ec327c53829b5e375be155dd
commit: fac8bf59e782ac74bb54d8427581f725bba8a769 [179/184] thermal: trip: Pass trip pointer to .set_trip_temp() thermal zone callback
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240710/202407100628.3zCKg3YO-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240710/202407100628.3zCKg3YO-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/202407100628.3zCKg3YO-lkp@xxxxxxxxx/

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

>> drivers/thermal/imx_thermal.c:385:26: error: initialization of 'int (*)(struct thermal_zone_device *, const struct thermal_trip *, int)' from incompatible pointer type 'int (*)(struct thermal_zone_device *, int,  int)' [-Werror=incompatible-pointer-types]
     385 |         .set_trip_temp = imx_set_trip_temp,
         |                          ^~~~~~~~~~~~~~~~~
   drivers/thermal/imx_thermal.c:385:26: note: (near initialization for 'imx_tz_ops.set_trip_temp')
   cc1: some warnings being treated as errors
--
   drivers/thermal/tegra/soctherm.c: In function 'tegra_thermctl_set_trip_temp':
>> drivers/thermal/tegra/soctherm.c:592:13: warning: unused variable 'ret' [-Wunused-variable]
     592 |         int ret;
         |             ^~~


vim +385 drivers/thermal/imx_thermal.c

ca3de46b508090 Shawn Guo             2013-06-24  379  
cbb07bb35de6eb Eduardo Valentin      2014-01-06  380  static struct thermal_zone_device_ops imx_tz_ops = {
ca3de46b508090 Shawn Guo             2013-06-24  381  	.bind = imx_bind,
ca3de46b508090 Shawn Guo             2013-06-24  382  	.unbind = imx_unbind,
ca3de46b508090 Shawn Guo             2013-06-24  383  	.get_temp = imx_get_temp,
f5e50bf4d3ef0a Andrzej Pietrasiewicz 2020-06-29  384  	.change_mode = imx_change_mode,
017e51420cc440 Philipp Zabel         2013-08-01 @385  	.set_trip_temp = imx_set_trip_temp,
ca3de46b508090 Shawn Guo             2013-06-24  386  };
ca3de46b508090 Shawn Guo             2013-06-24  387  

:::::: The code at line 385 was first introduced by commit
:::::: 017e51420cc44098308b00dffd9d4e514ddf40f3 thermal: imx: dynamic passive and SoC specific critical trip points

:::::: TO: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
:::::: CC: Zhang Rui <rui.zhang@xxxxxxxxx>

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




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux