* drivers/rtc/rtc-pcf8523.c:288:24: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2020-06-13 13:30 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-13 13:30 UTC (permalink / raw)
To: kbuild
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-13 13:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-13 13:30 drivers/rtc/rtc-pcf8523.c:288:24: sparse: sparse: incorrect type in initializer (different address spaces) 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.