All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [abelloni:rtc-next 52/57] drivers/rtc/rtc-ds3232.c:375:17: warning: initialization discards 'const' qualifier from pointer target type
Date: Fri, 28 Apr 2023 10:49:01 +0800	[thread overview]
Message-ID: <202304281017.MYM0hP59-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-04-28  2:49 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=202304281017.MYM0hP59-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.