CC: [email protected] CC: [email protected] TO: Andy Shevchenko <[email protected]> CC: "Greg Kroah-Hartman" <[email protected]> CC: Heikki Krogerus <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: 4d5675c3b10b7bfa56447c26c29930e35b6d41ee serial: 8250_dw: switch to use 8250_dwlib library date: 9 months ago :::::: branch date: 19 hours ago :::::: commit date: 9 months ago config: alpha-randconfig-s031-20200613 (attached as .config) compiler: alpha-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-250-g42323db3-dirty git checkout 4d5675c3b10b7bfa56447c26c29930e35b6d41ee # save the attached .config to linux build tree make W=1 C=1 ARCH=alpha 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/tty/serial/8250/8250_dwlib.c:45:17: sparse: sparse: incorrect type >> in argument 1 (different base types) @@ expected unsigned int [usertype] >> b @@ got restricted __be32 [usertype] @@ >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: expected unsigned >> int [usertype] b >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: got restricted >> __be32 [usertype] >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: sparse: incorrect type >> in argument 1 (different base types) @@ expected unsigned int [usertype] >> b @@ got restricted __be32 [usertype] @@ >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: expected unsigned >> int [usertype] b >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: got restricted >> __be32 [usertype] >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: sparse: incorrect type >> in argument 1 (different base types) @@ expected unsigned int [usertype] >> b @@ got restricted __be32 [usertype] @@ >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: expected unsigned >> int [usertype] b >> drivers/tty/serial/8250/8250_dwlib.c:45:17: sparse: got restricted >> __be32 [usertype] >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 >> drivers/tty/serial/8250/8250_dwlib.c:38:24: sparse: sparse: cast to >> restricted __be32 # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4d5675c3b10b7bfa56447c26c29930e35b6d41ee git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git remote update linus git checkout 4d5675c3b10b7bfa56447c26c29930e35b6d41ee vim +45 drivers/tty/serial/8250/8250_dwlib.c 136e0ab99b2237 Andy Shevchenko 2019-08-06 34 136e0ab99b2237 Andy Shevchenko 2019-08-06 35 static inline u32 dw8250_readl_ext(struct uart_port *p, int offset) 136e0ab99b2237 Andy Shevchenko 2019-08-06 36 { 136e0ab99b2237 Andy Shevchenko 2019-08-06 37 if (p->iotype == UPIO_MEM32BE) 136e0ab99b2237 Andy Shevchenko 2019-08-06 @38 return ioread32be(p->membase + offset); 136e0ab99b2237 Andy Shevchenko 2019-08-06 39 return readl(p->membase + offset); 136e0ab99b2237 Andy Shevchenko 2019-08-06 40 } 136e0ab99b2237 Andy Shevchenko 2019-08-06 41 136e0ab99b2237 Andy Shevchenko 2019-08-06 42 static inline void dw8250_writel_ext(struct uart_port *p, int offset, u32 reg) 136e0ab99b2237 Andy Shevchenko 2019-08-06 43 { 136e0ab99b2237 Andy Shevchenko 2019-08-06 44 if (p->iotype == UPIO_MEM32BE) 136e0ab99b2237 Andy Shevchenko 2019-08-06 @45 iowrite32be(reg, p->membase + offset); 136e0ab99b2237 Andy Shevchenko 2019-08-06 46 else 136e0ab99b2237 Andy Shevchenko 2019-08-06 47 writel(reg, p->membase + offset); 136e0ab99b2237 Andy Shevchenko 2019-08-06 48 } 136e0ab99b2237 Andy Shevchenko 2019-08-06 49 :::::: The code at line 45 was first introduced by commit :::::: 136e0ab99b22378e3ff7d54f799a3a329316e869 serial: 8250_dw: split Synopsys DesignWare 8250 common functions :::::: TO: Andy Shevchenko <[email protected]> :::::: CC: Greg Kroah-Hartman <[email protected]> --- 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]
