From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Thu, 22 Oct 2020 04:30:27 +0800 [thread overview]
Message-ID: <202010220417.PDWrZu0S-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 17266 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c4d6fe7311762f2e03b3c27ad38df7c40c80cc93
commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation)
date: 10 weeks ago
config: m68k-randconfig-s031-20201022 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f28ca6bd8211214faf717677bbffe375c2a6072
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8f28ca6bd8211214faf717677bbffe375c2a6072
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
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/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:264:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:268:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:268:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:268:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:286:6: sparse: sparse: symbol 'qe_uart_set_mctrl' was not declared. Should it be static?
drivers/tty/serial/ucc_uart.c:347:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:347:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:347:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:348:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:348:17: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:348:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:348:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:348:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:348:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:350:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:350:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:350:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:369:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:369:18: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:369:18: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:382:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:382:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:382:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:383:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:383:17: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:383:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:383:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:383:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:383:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:386:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:386:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:386:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:474:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:474:26: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:474:26: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:481:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:481:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:481:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:512:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:512:17: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:512:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:512:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:512:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:512:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:515:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:515:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:515:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:604:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:604:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:604:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:605:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:605:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:605:17: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:606:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:606:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:606:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:612:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:612:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:612:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:613:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:613:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:613:9: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:614:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:614:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:614:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:625:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:625:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:625:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:626:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:626:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:626:17: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:627:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:627:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:627:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:637:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:637:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:637:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:638:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:638:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:638:9: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:639:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:639:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:639:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:653:46: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct ucc_uart_pram *uccup @@ got struct ucc_uart_pram [noderef] __iomem *uccup @@
drivers/tty/serial/ucc_uart.c:653:46: sparse: expected struct ucc_uart_pram *uccup
drivers/tty/serial/ucc_uart.c:653:46: sparse: got struct ucc_uart_pram [noderef] __iomem *uccup
drivers/tty/serial/ucc_uart.c:661:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned char * @@
drivers/tty/serial/ucc_uart.c:661:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:661:9: sparse: got unsigned char *
drivers/tty/serial/ucc_uart.c:662:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned char * @@
drivers/tty/serial/ucc_uart.c:662:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:662:9: sparse: got unsigned char *
drivers/tty/serial/ucc_uart.c:663:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:663:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:663:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:664:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:664:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:664:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:665:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:665:9: sparse: expected void [noderef] __iomem *
vim +264 drivers/tty/serial/ucc_uart.c
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 248
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 249 /*
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 250 * Return 1 if the QE is done transmitting all buffers for this port
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 251 *
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 252 * This function scans each BD in sequence. If we find a BD that is not
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 253 * ready (READY=1), then we return 0 indicating that the QE is still sending
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 254 * data. If we reach the last BD (WRAP=1), then we know we've scanned
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 255 * the entire list, and all BDs are done.
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 256 */
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 257 static unsigned int qe_uart_tx_empty(struct uart_port *port)
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 258 {
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 259 struct uart_qe_port *qe_port =
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 260 container_of(port, struct uart_qe_port, port);
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 261 struct qe_bd *bdp = qe_port->tx_bd_base;
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 262
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 263 while (1) {
8b1cdc4033bd16 drivers/tty/serial/ucc_uart.c Rasmus Villemoes 2019-11-28 @264 if (qe_ioread16be(&bdp->status) & BD_SC_READY)
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 265 /* This BD is not done, so return "not done" */
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 266 return 0;
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 267
8b1cdc4033bd16 drivers/tty/serial/ucc_uart.c Rasmus Villemoes 2019-11-28 268 if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 269 /*
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 270 * This BD is done and it's the last one, so return
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 271 * "done"
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 272 */
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 273 return 1;
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 274
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 275 bdp++;
fc811472c2167c drivers/tty/serial/ucc_uart.c Joe Perches 2013-10-08 276 }
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 277 }
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 278
:::::: The code at line 264 was first introduced by commit
:::::: 8b1cdc4033bd1659c5499c918d4e59bf8253abec serial: ucc_uart: replace ppc-specific IO accessors
:::::: TO: Rasmus Villemoes <linux@rasmusvillemoes.dk>
:::::: CC: Li Yang <leoyang.li@nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30913 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Arnd Bergmann <arnd@arndb.de>
Subject: drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Thu, 22 Oct 2020 04:30:27 +0800 [thread overview]
Message-ID: <202010220417.PDWrZu0S-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 17095 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c4d6fe7311762f2e03b3c27ad38df7c40c80cc93
commit: 8f28ca6bd8211214faf717677bbffe375c2a6072 iomap: constify ioreadX() iomem argument (as in generic implementation)
date: 10 weeks ago
config: m68k-randconfig-s031-20201022 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f28ca6bd8211214faf717677bbffe375c2a6072
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 8f28ca6bd8211214faf717677bbffe375c2a6072
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
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/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:264:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:268:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:268:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:268:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:286:6: sparse: sparse: symbol 'qe_uart_set_mctrl' was not declared. Should it be static?
drivers/tty/serial/ucc_uart.c:347:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:347:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:347:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:348:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:348:17: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:348:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:348:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:348:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:348:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:350:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:350:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:350:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:369:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:369:18: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:369:18: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:382:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:382:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:382:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:383:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:383:17: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:383:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:383:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:383:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:383:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:386:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:386:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:386:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:474:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:474:26: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:474:26: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:481:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:481:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:481:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:512:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:512:17: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:512:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:512:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:512:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:512:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:515:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:515:21: sparse: expected void const [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:515:21: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:604:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:604:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:604:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:605:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:605:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:605:17: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:606:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:606:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:606:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:612:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:612:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:612:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:613:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:613:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:613:9: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:614:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:614:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:614:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:625:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:625:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:625:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:626:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:626:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:626:17: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:627:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:627:17: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:627:17: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:637:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:637:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:637:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:638:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be32 * @@
drivers/tty/serial/ucc_uart.c:638:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:638:9: sparse: got restricted __be32 *
drivers/tty/serial/ucc_uart.c:639:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:639:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:639:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:653:46: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct ucc_uart_pram *uccup @@ got struct ucc_uart_pram [noderef] __iomem *uccup @@
drivers/tty/serial/ucc_uart.c:653:46: sparse: expected struct ucc_uart_pram *uccup
drivers/tty/serial/ucc_uart.c:653:46: sparse: got struct ucc_uart_pram [noderef] __iomem *uccup
drivers/tty/serial/ucc_uart.c:661:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned char * @@
drivers/tty/serial/ucc_uart.c:661:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:661:9: sparse: got unsigned char *
drivers/tty/serial/ucc_uart.c:662:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got unsigned char * @@
drivers/tty/serial/ucc_uart.c:662:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:662:9: sparse: got unsigned char *
drivers/tty/serial/ucc_uart.c:663:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:663:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:663:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:664:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:664:9: sparse: expected void [noderef] __iomem *
drivers/tty/serial/ucc_uart.c:664:9: sparse: got restricted __be16 *
drivers/tty/serial/ucc_uart.c:665:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem * @@ got restricted __be16 * @@
drivers/tty/serial/ucc_uart.c:665:9: sparse: expected void [noderef] __iomem *
vim +264 drivers/tty/serial/ucc_uart.c
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 248
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 249 /*
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 250 * Return 1 if the QE is done transmitting all buffers for this port
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 251 *
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 252 * This function scans each BD in sequence. If we find a BD that is not
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 253 * ready (READY=1), then we return 0 indicating that the QE is still sending
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 254 * data. If we reach the last BD (WRAP=1), then we know we've scanned
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 255 * the entire list, and all BDs are done.
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 256 */
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 257 static unsigned int qe_uart_tx_empty(struct uart_port *port)
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 258 {
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 259 struct uart_qe_port *qe_port =
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 260 container_of(port, struct uart_qe_port, port);
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 261 struct qe_bd *bdp = qe_port->tx_bd_base;
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 262
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 263 while (1) {
8b1cdc4033bd16 drivers/tty/serial/ucc_uart.c Rasmus Villemoes 2019-11-28 @264 if (qe_ioread16be(&bdp->status) & BD_SC_READY)
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 265 /* This BD is not done, so return "not done" */
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 266 return 0;
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 267
8b1cdc4033bd16 drivers/tty/serial/ucc_uart.c Rasmus Villemoes 2019-11-28 268 if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 269 /*
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 270 * This BD is done and it's the last one, so return
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 271 * "done"
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 272 */
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 273 return 1;
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 274
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 275 bdp++;
fc811472c2167c drivers/tty/serial/ucc_uart.c Joe Perches 2013-10-08 276 }
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 277 }
d7584ed2b994a5 drivers/serial/ucc_uart.c Timur Tabi 2008-01-15 278
:::::: The code at line 264 was first introduced by commit
:::::: 8b1cdc4033bd1659c5499c918d4e59bf8253abec serial: ucc_uart: replace ppc-specific IO accessors
:::::: TO: Rasmus Villemoes <linux@rasmusvillemoes.dk>
:::::: CC: Li Yang <leoyang.li@nxp.com>
---
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: 30913 bytes --]
next reply other threads:[~2020-10-21 20:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-21 20:30 kernel test robot [this message]
2020-10-21 20:30 ` drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-08-12 11:34 kernel test robot
2021-04-29 13:14 kernel test robot
2021-04-29 13:14 ` kernel test robot
2020-12-29 2:57 kernel test robot
2020-12-29 2:57 ` kernel test robot
2020-06-05 5:51 kernel test robot
2020-06-05 5:51 ` kernel test robot
2020-05-27 14:04 kbuild test robot
2020-05-27 14:04 ` kbuild test robot
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=202010220417.PDWrZu0S-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@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.