CC: [email protected] CC: [email protected] TO: Alexandre Belloni <[email protected]>
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 <[email protected]> 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/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
