* [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)'
@ 2024-07-09 23:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-09 23:08 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: oe-kbuild-all, linux-acpi, devel, linux-pm
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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407100628.3zCKg3YO-lkp@intel.com/
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@pengutronix.de>
:::::: CC: Zhang Rui <rui.zhang@intel.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-09 23:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 23:08 [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)' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox