From: kernel test robot <lkp@intel.com>
To: Daniel Lezcano <daniel.lezcano@linexp.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzk@kernel.org>
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)'
Date: Tue, 2 Aug 2022 13:27:53 +0800 [thread overview]
Message-ID: <202208021355.EjfjgbFl-lkp@intel.com> (raw)
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
reply other threads:[~2022-08-02 5:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202208021355.EjfjgbFl-lkp@intel.com \
--to=lkp@intel.com \
--cc=daniel.lezcano@linexp.org \
--cc=kbuild-all@lists.01.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.