* [abelloni:rtc-next 52/57] drivers/rtc/rtc-ds3232.c:375:17: warning: initialization discards 'const' qualifier from pointer target type
@ 2023-04-28 2:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-28 2:49 UTC (permalink / raw)
To: Alexandre Belloni; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next
head: 2c1afd03f007ce89de38d7ca355f05330c6038f0
commit: e4133995fe80251ad2abb0261745ea27ab97c2e7 [52/57] rtc: ds3232: constify pointers to hwmon_channel_info
config: sparc-randconfig-r034-20230427 (https://download.01.org/0day-ci/archive/20230428/202304281017.MYM0hP59-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/abelloni/linux.git/commit/?id=e4133995fe80251ad2abb0261745ea27ab97c2e7
git remote add abelloni https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git
git fetch --no-tags abelloni rtc-next
git checkout e4133995fe80251ad2abb0261745ea27ab97c2e7
# 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=sparc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/rtc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304281017.MYM0hP59-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/rtc/rtc-ds3232.c:375:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
375 | .info = ds3232_hwmon_info,
| ^~~~~~~~~~~~~~~~~
vim +/const +375 drivers/rtc/rtc-ds3232.c
c35c4195f919a0 Kirill Esipov 2017-06-28 372
c35c4195f919a0 Kirill Esipov 2017-06-28 373 static const struct hwmon_chip_info ds3232_hwmon_chip_info = {
c35c4195f919a0 Kirill Esipov 2017-06-28 374 .ops = &ds3232_hwmon_hwmon_ops,
c35c4195f919a0 Kirill Esipov 2017-06-28 @375 .info = ds3232_hwmon_info,
c35c4195f919a0 Kirill Esipov 2017-06-28 376 };
c35c4195f919a0 Kirill Esipov 2017-06-28 377
:::::: The code at line 375 was first introduced by commit
:::::: c35c4195f919a077ce106ec84cfcecbb0b67db30 rtc: ds3232: add temperature support
:::::: TO: Kirill Esipov <yesipov@gmail.com>
:::::: CC: Alexandre Belloni <alexandre.belloni@free-electrons.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-28 2:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-28 2:49 [abelloni:rtc-next 52/57] drivers/rtc/rtc-ds3232.c:375:17: warning: initialization discards 'const' qualifier from pointer target type kernel test robot
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.