lkml.org 
[lkml]   [2022]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[thermal:thermal/linux-next 66/68] drivers/thermal/samsung/exynos_tmu.c:1002:26: error: initialization of 'int (*)(struct thermal_zone_device *, int)' from incompatible pointer type 'int (*)(struct thermal_zone *, int)'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/linux-next
head: 340682c9ef87a4e56051c5b20cf2d5f99dec4ce1
commit: 59e5178d0fe913197fe4f5353ee7d788539abc57 [66/68] thermal/drivers/samsung: Switch to new of thermal API
config: sparc64-randconfig-r032-20220801 (https://download.01.org/0day-ci/archive/20220802/202208021355.EjfjgbFl-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git/commit/?id=59e5178d0fe913197fe4f5353ee7d788539abc57
git remote add thermal git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git
git fetch --no-tags thermal thermal/linux-next
git checkout 59e5178d0fe913197fe4f5353ee7d788539abc57
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/thermal/samsung/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

drivers/thermal/samsung/exynos_tmu.c:753:44: warning: 'struct thermal_zone' declared inside parameter list will not be visible outside of this definition or declaration
753 | static int exynos_tmu_set_emulation(struct thermal_zone *tz, int temp)
| ^~~~~~~~~~~~
>> drivers/thermal/samsung/exynos_tmu.c:1002:26: error: initialization of 'int (*)(struct thermal_zone_device *, int)' from incompatible pointer type 'int (*)(struct thermal_zone *, int)' [-Werror=incompatible-pointer-types]
1002 | .set_emul_temp = exynos_tmu_set_emulation,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/thermal/samsung/exynos_tmu.c:1002:26: note: (near initialization for 'exynos_sensor_ops.set_emul_temp')
cc1: some warnings being treated as errors


vim +1002 drivers/thermal/samsung/exynos_tmu.c

cebe7373a7e659d Amit Daniel Kachhap 2013-06-24 999
59e5178d0fe9131 Daniel Lezcano 2022-08-01 1000 static const struct thermal_zone_device_ops exynos_sensor_ops = {
3b6a1a805f34247 Lukasz Majewski 2015-01-23 1001 .get_temp = exynos_get_temp,
3b6a1a805f34247 Lukasz Majewski 2015-01-23 @1002 .set_emul_temp = exynos_tmu_set_emulation,
3b6a1a805f34247 Lukasz Majewski 2015-01-23 1003 };
3b6a1a805f34247 Lukasz Majewski 2015-01-23 1004

:::::: The code at line 1002 was first introduced by commit
:::::: 3b6a1a805f342472a0e68e2a0eb1decaadf7fa02 thermal: samsung: core: Exynos TMU rework to use device tree for configuration

:::::: TO: Lukasz Majewski <l.majewski@samsung.com>
:::::: CC: Eduardo Valentin <edubezval@gmail.com>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-08-02 07:29    [W:0.034 / U:1.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site