All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: drivers/rtc/rtc-pcf8523.c:288:24: sparse: sparse: incorrect type in initializer (different address spaces)
Date: Sat, 13 Jun 2020 21:30:51 +0800	[thread overview]
Message-ID: <202006132143.FPRd3uWs%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3622 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alexandre Belloni <alexandre.belloni@bootlin.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   df2fbf5bfa0e7fff8b4784507e4d68f200454318
commit: 244cf8f0ed2778e1897b64b9043367b7263f5590 rtc: pcf8523: return meaningful value for RTC_VL_READ
date:   6 months ago
:::::: branch date: 16 hours ago
:::::: commit date: 6 months ago
config: openrisc-randconfig-s032-20200613 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-250-g42323db3-dirty
        git checkout 244cf8f0ed2778e1897b64b9043367b7263f5590
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=openrisc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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


sparse warnings: (new ones prefixed by >>)

>> drivers/rtc/rtc-pcf8523.c:288:24: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int *__pu_addr @@     got unsigned int [noderef] <asn:1> * @@
>> drivers/rtc/rtc-pcf8523.c:288:24: sparse:     expected unsigned int *__pu_addr
>> drivers/rtc/rtc-pcf8523.c:288:24: sparse:     got unsigned int [noderef] <asn:1> *

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=244cf8f0ed2778e1897b64b9043367b7263f5590
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git remote update linus
git checkout 244cf8f0ed2778e1897b64b9043367b7263f5590
vim +288 drivers/rtc/rtc-pcf8523.c

f803f0d079ded4 Thierry Reding    2012-12-17  272  
f32bc70d5f938c Jesper Nilsson    2013-02-21  273  #ifdef CONFIG_RTC_INTF_DEV
f32bc70d5f938c Jesper Nilsson    2013-02-21  274  static int pcf8523_rtc_ioctl(struct device *dev, unsigned int cmd,
f32bc70d5f938c Jesper Nilsson    2013-02-21  275  			     unsigned long arg)
f32bc70d5f938c Jesper Nilsson    2013-02-21  276  {
f32bc70d5f938c Jesper Nilsson    2013-02-21  277  	struct i2c_client *client = to_i2c_client(dev);
ecb4a353d3afd4 Baruch Siach      2018-12-05  278  	int ret;
f32bc70d5f938c Jesper Nilsson    2013-02-21  279  
f32bc70d5f938c Jesper Nilsson    2013-02-21  280  	switch (cmd) {
f32bc70d5f938c Jesper Nilsson    2013-02-21  281  	case RTC_VL_READ:
ecb4a353d3afd4 Baruch Siach      2018-12-05  282  		ret = pcf8523_voltage_low(client);
ecb4a353d3afd4 Baruch Siach      2018-12-05  283  		if (ret < 0)
ecb4a353d3afd4 Baruch Siach      2018-12-05  284  			return ret;
244cf8f0ed2778 Alexandre Belloni 2019-12-14  285  		if (ret)
244cf8f0ed2778 Alexandre Belloni 2019-12-14  286  			ret = RTC_VL_BACKUP_LOW;
f32bc70d5f938c Jesper Nilsson    2013-02-21  287  
244cf8f0ed2778 Alexandre Belloni 2019-12-14 @288  		return put_user(ret, (unsigned int __user *)arg);
f32bc70d5f938c Jesper Nilsson    2013-02-21  289  
f32bc70d5f938c Jesper Nilsson    2013-02-21  290  	default:
f32bc70d5f938c Jesper Nilsson    2013-02-21  291  		return -ENOIOCTLCMD;
f32bc70d5f938c Jesper Nilsson    2013-02-21  292  	}
f32bc70d5f938c Jesper Nilsson    2013-02-21  293  }
f32bc70d5f938c Jesper Nilsson    2013-02-21  294  #else
f32bc70d5f938c Jesper Nilsson    2013-02-21  295  #define pcf8523_rtc_ioctl NULL
f32bc70d5f938c Jesper Nilsson    2013-02-21  296  #endif
f32bc70d5f938c Jesper Nilsson    2013-02-21  297  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 23742 bytes --]

                 reply	other threads:[~2020-06-13 13:30 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=202006132143.FPRd3uWs%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.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.