linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-05-27 14:04 kbuild test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2020-05-27 14:04 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: kbuild-all, linux-kernel, Li Yang, Timur Tabi

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

Hi Rasmus,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   444fc5cde64330661bf59944c43844e7d4c2ccd8
commit: 5a35435ef4e6e4bd2aabd6706b146b298a9cffe5 soc: fsl: qe: remove PPC32 dependency from CONFIG_QUICC_ENGINE
date:   6 months ago
config: arm64-randconfig-s031-20200527 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-240-gf0fe1cd9-dirty
        git checkout 5a35435ef4e6e4bd2aabd6706b146b298a9cffe5
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild 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 volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] <asn:2> *addr
   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 volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] <asn:2> *addr
   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:349:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:349:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:349:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:352:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:371:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:384:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:384:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:384:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:385:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:385:17: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:385:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:385:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:385:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:385:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:388:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:388:21: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:388:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:476:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:476:26: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:476:26: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:483:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:483:21: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:483:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:514:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:514:17: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:514:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:514:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:514:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:514:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:517:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:517:21: sparse:     expected void const volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:517:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:608:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:608:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:608:17: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:609:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:609:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:609:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:610:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:610:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:610:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:616:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:616:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:616:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:617:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:617:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:617:9: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:618:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:618:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:618:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:629:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:629:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:629:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:630:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:630:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:630:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:631:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:631:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:631:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:641:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:641:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:641:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:642:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:642:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:642:9: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:643:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:643:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:643:9: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:657:46: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct ucc_uart_pram *uccup @@     got struct ucc_uart_pram [noderef] <asn:2> *uccup @@
   drivers/tty/serial/ucc_uart.c:657:46: sparse:     expected struct ucc_uart_pram *uccup
   drivers/tty/serial/ucc_uart.c:657:46: sparse:     got struct ucc_uart_pram [noderef] <asn:2> *uccup
>> drivers/tty/serial/ucc_uart.c:665:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:665:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:665:9: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:666:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:666:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:666:9: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:667:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:667:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:667:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:668:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:668:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:668:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:669:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:669:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:669:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:670:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:670:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:670:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:671:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:671:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:671:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:672:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:672:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:672:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:673:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:673:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:673:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:674:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:674:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:674:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:675:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:675:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:675:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:676:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:676:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:676:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:678:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:678:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:678:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:679:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:679:9: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:679:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:717:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:717:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:717:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:718:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:718:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:718:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:719:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:719:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:719:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:720:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:720:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:720:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:721:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:721:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:721:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:722:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:722:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:722:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:723:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:723:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:723:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:724:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:724:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:724:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:725:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:725:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:725:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:726:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:726:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:726:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:728:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:728:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:728:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:730:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:730:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:730:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:731:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:731:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:731:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:732:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] <asn:2> *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:732:17: sparse:     expected void volatile [noderef] <asn:2> *addr
   drivers/tty/serial/ucc_uart.c:732:17: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:1004:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct ucc_uart_pram [noderef] <asn:2> *uccup @@     got struct ucc_uart_pram * @@
   drivers/tty/serial/ucc_uart.c:1004:24: sparse:     expected struct ucc_uart_pram [noderef] <asn:2> *uccup
   drivers/tty/serial/ucc_uart.c:1004:24: sparse:     got struct ucc_uart_pram *

vim +264 drivers/tty/serial/ucc_uart.c

d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  248  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  249  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  250   * Return 1 if the QE is done transmitting all buffers for this port
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  251   *
d7584ed2b994a57 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
d7584ed2b994a57 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
d7584ed2b994a57 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
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  255   * the entire list, and all BDs are done.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  256   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  257  static unsigned int qe_uart_tx_empty(struct uart_port *port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  258  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  259  	struct uart_qe_port *qe_port =
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  260  		container_of(port, struct uart_qe_port, port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  261  	struct qe_bd *bdp = qe_port->tx_bd_base;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  262  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  263  	while (1) {
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28 @264  		if (qe_ioread16be(&bdp->status) & BD_SC_READY)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  265  			/* This BD is not done, so return "not done" */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  266  			return 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  267  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  268  		if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  269  			/*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  270  			 * This BD is done and it's the last one, so return
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  271  			 * "done"
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  272  			 */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  273  			return 1;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  274  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  275  		bdp++;
fc811472c2167cc drivers/tty/serial/ucc_uart.c Joe Perches        2013-10-08  276  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  277  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  278  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  279  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  280   * Set the modem control lines
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  281   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  282   * Although the QE can control the modem control lines (e.g. CTS), we
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  283   * don't need that support. This function must exist, however, otherwise
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  284   * the kernel will panic.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  285   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  286  void qe_uart_set_mctrl(struct uart_port *port, unsigned int mctrl)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  287  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  288  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  289  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  290  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  291   * Get the current modem control line status
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  292   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  293   * Although the QE can control the modem control lines (e.g. CTS), this
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  294   * driver currently doesn't support that, so we always return Carrier
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  295   * Detect, Data Set Ready, and Clear To Send.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  296   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  297  static unsigned int qe_uart_get_mctrl(struct uart_port *port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  298  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  299  	return TIOCM_CAR | TIOCM_DSR | TIOCM_CTS;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  300  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  301  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  302  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  303   * Disable the transmit interrupt.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  304   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  305   * Although this function is called "stop_tx", it does not actually stop
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  306   * transmission of data.  Instead, it tells the QE to not generate an
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  307   * interrupt when the UCC is finished sending characters.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  308   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  309  static void qe_uart_stop_tx(struct uart_port *port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  310  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  311  	struct uart_qe_port *qe_port =
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  312  		container_of(port, struct uart_qe_port, port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  313  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  314  	qe_clrbits_be16(&qe_port->uccp->uccm, UCC_UART_UCCE_TX);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  315  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  316  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  317  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  318   * Transmit as many characters to the HW as possible.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  319   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  320   * This function will attempt to stuff of all the characters from the
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  321   * kernel's transmit buffer into TX BDs.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  322   *
af901ca181d92aa drivers/serial/ucc_uart.c     André Goddard Rosa 2009-11-14  323   * A return value of non-zero indicates that it successfully stuffed all
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  324   * characters from the kernel buffer.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  325   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  326   * A return value of zero indicates that there are still characters in the
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  327   * kernel's buffer that have not been transmitted, but there are no more BDs
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  328   * available.  This function should be called again after a BD has been made
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  329   * available.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  330   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  331  static int qe_uart_tx_pump(struct uart_qe_port *qe_port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  332  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  333  	struct qe_bd *bdp;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  334  	unsigned char *p;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  335  	unsigned int count;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  336  	struct uart_port *port = &qe_port->port;
ebd2c8f6d2ec401 drivers/serial/ucc_uart.c     Alan Cox           2009-09-19  337  	struct circ_buf *xmit = &port->state->xmit;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  338  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  339  	bdp = qe_port->rx_cur;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  340  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  341  	/* Handle xon/xoff */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  342  	if (port->x_char) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  343  		/* Pick next descriptor and fill from buffer */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  344  		bdp = qe_port->tx_cur;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  345  
09a39ec9decd99e drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  346  		p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  347  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  348  		*p++ = port->x_char;
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28 @349  		qe_iowrite16be(1, &bdp->length);
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  350  		qe_setbits_be16(&bdp->status, BD_SC_READY);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  351  		/* Get next BD. */
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  352  		if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  353  			bdp = qe_port->tx_bd_base;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  354  		else
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  355  			bdp++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  356  		qe_port->tx_cur = bdp;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  357  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  358  		port->icount.tx++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  359  		port->x_char = 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  360  		return 1;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  361  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  362  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  363  	if (uart_circ_empty(xmit) || uart_tx_stopped(port)) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  364  		qe_uart_stop_tx(port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  365  		return 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  366  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  367  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  368  	/* Pick next descriptor and fill from buffer */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  369  	bdp = qe_port->tx_cur;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  370  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  371  	while (!(qe_ioread16be(&bdp->status) & BD_SC_READY) &&
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  372  	       (xmit->tail != xmit->head)) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  373  		count = 0;
09a39ec9decd99e drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  374  		p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  375  		while (count < qe_port->tx_fifosize) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  376  			*p++ = xmit->buf[xmit->tail];
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  377  			xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  378  			port->icount.tx++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  379  			count++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  380  			if (xmit->head == xmit->tail)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  381  				break;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  382  		}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  383  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  384  		qe_iowrite16be(count, &bdp->length);
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  385  		qe_setbits_be16(&bdp->status, BD_SC_READY);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  386  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  387  		/* Get next BD. */
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  388  		if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  389  			bdp = qe_port->tx_bd_base;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  390  		else
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  391  			bdp++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  392  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  393  	qe_port->tx_cur = bdp;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  394  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  395  	if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  396  		uart_write_wakeup(port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  397  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  398  	if (uart_circ_empty(xmit)) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  399  		/* The kernel buffer is empty, so turn off TX interrupts.  We
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  400  		   don't need to be told when the QE is finished transmitting
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  401  		   the data. */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  402  		qe_uart_stop_tx(port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  403  		return 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  404  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  405  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  406  	return 1;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  407  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  408  

:::::: 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: 42546 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-04-29 13:14 kernel test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2021-04-29 13:14 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Miguel Ojeda

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d72cd4ad4174cfd2257c426ad51e4f53bcfde9c9
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date:   8 months ago
config: arm-randconfig-s032-20210429 (attached as .config)
compiler: arm-linux-gnueabi-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-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5fc436f06eef54ef512ea55a9db8eb9f2e76959
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout e5fc436f06eef54ef512ea55a9db8eb9f2e76959
        # 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__' W=1 ARCH=arm 

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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:268: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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:268: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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:268: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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:347:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:350:21: 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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:350:21: 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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:350:21: 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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:21: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:369:18: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:369:18: 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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:369:18: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:369:18: 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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:369:18: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/tty/serial/ucc_uart.c:369:18: 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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:369:18: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:382:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:383:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   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 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got restricted __be16 * @@

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: 31973 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-12-29  2:57 kernel test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-12-29  2:57 UTC (permalink / raw)
  To: Christophe Leroy; +Cc: kbuild-all, linux-kernel, Michael Ellerman

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dea8dcf2a9fa8cc540136a6cd885c3beece16ec3
commit: 894fa235eb4ca0bfa692dbe4932c2f940cdc8c1e powerpc: inline iomap accessors
date:   4 weeks ago
config: powerpc64-randconfig-s031-20201223 (attached as .config)
compiler: powerpc64-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-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=894fa235eb4ca0bfa692dbe4932c2f940cdc8c1e
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 894fa235eb4ca0bfa692dbe4932c2f940cdc8c1e
        # 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=powerpc64 

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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:347:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:347:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:348:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:21: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:369:18: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:382:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:383:17: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:383:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:386:21: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:474:26: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:481:21: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:512:17: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:512:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:515:21: sparse:     expected void const [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:604:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:605:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:606:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:612:9: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:613:9: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:614:9: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:625:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:626:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:627:17: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:637:9: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:638:9: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:639:9: sparse:     expected void [noderef] __iomem *addr
   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 volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:661:9: sparse:     expected void volatile [noderef] __iomem *addr
   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 volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:662:9: sparse:     expected void volatile [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:663:9: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:664:9: sparse:     expected void [noderef] __iomem *addr
   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 *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:665:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:665:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:666:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:666:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:666:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:667:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:667:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:667:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:668:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:668:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:668:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:669:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:669:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:669:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:670:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:670:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:670:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:671:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:671:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:671:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:672:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:672:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:672:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:674:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:674:17: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:674:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:675:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:675:9: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:675:9: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:713:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:713:17: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:713:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:714:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:714:17: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:714:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:715:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:715:17: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:715:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:716:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:716:17: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:716:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:717:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:717:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:717:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:718:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:718:17: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:718:17: sparse:     got unsigned char *
   drivers/tty/serial/ucc_uart.c:719:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got restricted __be32 * @@
   drivers/tty/serial/ucc_uart.c:719:17: sparse:     expected void [noderef] __iomem *addr
   drivers/tty/serial/ucc_uart.c:719:17: sparse:     got restricted __be32 *
   drivers/tty/serial/ucc_uart.c:720:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned char * @@
   drivers/tty/serial/ucc_uart.c:720:17: sparse:     expected void volatile [noderef] __iomem *addr

vim +264 drivers/tty/serial/ucc_uart.c

d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  248  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  249  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  250   * Return 1 if the QE is done transmitting all buffers for this port
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  251   *
d7584ed2b994a57 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
d7584ed2b994a57 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
d7584ed2b994a57 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
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  255   * the entire list, and all BDs are done.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  256   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  257  static unsigned int qe_uart_tx_empty(struct uart_port *port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  258  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  259  	struct uart_qe_port *qe_port =
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  260  		container_of(port, struct uart_qe_port, port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  261  	struct qe_bd *bdp = qe_port->tx_bd_base;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  262  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  263  	while (1) {
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28 @264  		if (qe_ioread16be(&bdp->status) & BD_SC_READY)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  265  			/* This BD is not done, so return "not done" */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  266  			return 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  267  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  268  		if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  269  			/*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  270  			 * This BD is done and it's the last one, so return
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  271  			 * "done"
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  272  			 */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  273  			return 1;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  274  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  275  		bdp++;
fc811472c2167cc drivers/tty/serial/ucc_uart.c Joe Perches        2013-10-08  276  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  277  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  278  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  279  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  280   * Set the modem control lines
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  281   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  282   * Although the QE can control the modem control lines (e.g. CTS), we
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  283   * don't need that support. This function must exist, however, otherwise
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  284   * the kernel will panic.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  285   */
4be002f1dec8418 drivers/tty/serial/ucc_uart.c Jason Yan          2020-09-12  286  static void qe_uart_set_mctrl(struct uart_port *port, unsigned int mctrl)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  287  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  288  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  289  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  290  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  291   * Get the current modem control line status
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  292   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  293   * Although the QE can control the modem control lines (e.g. CTS), this
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  294   * driver currently doesn't support that, so we always return Carrier
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  295   * Detect, Data Set Ready, and Clear To Send.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  296   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  297  static unsigned int qe_uart_get_mctrl(struct uart_port *port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  298  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  299  	return TIOCM_CAR | TIOCM_DSR | TIOCM_CTS;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  300  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  301  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  302  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  303   * Disable the transmit interrupt.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  304   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  305   * Although this function is called "stop_tx", it does not actually stop
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  306   * transmission of data.  Instead, it tells the QE to not generate an
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  307   * interrupt when the UCC is finished sending characters.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  308   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  309  static void qe_uart_stop_tx(struct uart_port *port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  310  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  311  	struct uart_qe_port *qe_port =
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  312  		container_of(port, struct uart_qe_port, port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  313  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  314  	qe_clrbits_be16(&qe_port->uccp->uccm, UCC_UART_UCCE_TX);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  315  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  316  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  317  /*
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  318   * Transmit as many characters to the HW as possible.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  319   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  320   * This function will attempt to stuff of all the characters from the
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  321   * kernel's transmit buffer into TX BDs.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  322   *
af901ca181d92aa drivers/serial/ucc_uart.c     André Goddard Rosa 2009-11-14  323   * A return value of non-zero indicates that it successfully stuffed all
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  324   * characters from the kernel buffer.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  325   *
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  326   * A return value of zero indicates that there are still characters in the
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  327   * kernel's buffer that have not been transmitted, but there are no more BDs
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  328   * available.  This function should be called again after a BD has been made
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  329   * available.
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  330   */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  331  static int qe_uart_tx_pump(struct uart_qe_port *qe_port)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  332  {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  333  	struct qe_bd *bdp;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  334  	unsigned char *p;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  335  	unsigned int count;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  336  	struct uart_port *port = &qe_port->port;
ebd2c8f6d2ec401 drivers/serial/ucc_uart.c     Alan Cox           2009-09-19  337  	struct circ_buf *xmit = &port->state->xmit;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  338  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  339  	/* Handle xon/xoff */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  340  	if (port->x_char) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  341  		/* Pick next descriptor and fill from buffer */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  342  		bdp = qe_port->tx_cur;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  343  
09a39ec9decd99e drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  344  		p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  345  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  346  		*p++ = port->x_char;
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28 @347  		qe_iowrite16be(1, &bdp->length);
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  348  		qe_setbits_be16(&bdp->status, BD_SC_READY);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  349  		/* Get next BD. */
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  350  		if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  351  			bdp = qe_port->tx_bd_base;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  352  		else
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  353  			bdp++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  354  		qe_port->tx_cur = bdp;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  355  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  356  		port->icount.tx++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  357  		port->x_char = 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  358  		return 1;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  359  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  360  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  361  	if (uart_circ_empty(xmit) || uart_tx_stopped(port)) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  362  		qe_uart_stop_tx(port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  363  		return 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  364  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  365  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  366  	/* Pick next descriptor and fill from buffer */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  367  	bdp = qe_port->tx_cur;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  368  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  369  	while (!(qe_ioread16be(&bdp->status) & BD_SC_READY) &&
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  370  	       (xmit->tail != xmit->head)) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  371  		count = 0;
09a39ec9decd99e drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  372  		p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  373  		while (count < qe_port->tx_fifosize) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  374  			*p++ = xmit->buf[xmit->tail];
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  375  			xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  376  			port->icount.tx++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  377  			count++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  378  			if (xmit->head == xmit->tail)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  379  				break;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  380  		}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  381  
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  382  		qe_iowrite16be(count, &bdp->length);
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  383  		qe_setbits_be16(&bdp->status, BD_SC_READY);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  384  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  385  		/* Get next BD. */
8b1cdc4033bd165 drivers/tty/serial/ucc_uart.c Rasmus Villemoes   2019-11-28  386  		if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  387  			bdp = qe_port->tx_bd_base;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  388  		else
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  389  			bdp++;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  390  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  391  	qe_port->tx_cur = bdp;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  392  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  393  	if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  394  		uart_write_wakeup(port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  395  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  396  	if (uart_circ_empty(xmit)) {
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  397  		/* The kernel buffer is empty, so turn off TX interrupts.  We
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  398  		   don't need to be told when the QE is finished transmitting
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  399  		   the data. */
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  400  		qe_uart_stop_tx(port);
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  401  		return 0;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  402  	}
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  403  
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  404  	return 1;
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  405  }
d7584ed2b994a57 drivers/serial/ucc_uart.c     Timur Tabi         2008-01-15  406  

:::::: 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: 35194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-10-21 20:30 kernel test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-10-21 20:30 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: kbuild-all, linux-kernel, Andrew Morton,
	Linux Memory Management List, Geert Uytterhoeven, Arnd Bergmann

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-06-05  5:51 kernel test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2020-06-05  5:51 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: kbuild-all, linux-kernel, Li Yang, Timur Tabi

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   435faf5c218a47fd6258187f62d9bb1009717896
commit: 5a35435ef4e6e4bd2aabd6706b146b298a9cffe5 soc: fsl: qe: remove PPC32 dependency from CONFIG_QUICC_ENGINE
date:   6 months ago
config: arm-randconfig-s031-20200605 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-246-g41f651b4-dirty
        git checkout 5a35435ef4e6e4bd2aabd6706b146b298a9cffe5
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm 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/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
>> drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
>> drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
>> drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:264:21: sparse:     got restricted __be16 *
>> drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
>> drivers/tty/serial/ucc_uart.c:264:21: sparse:     expected void const volatile [noderef] <asn:2> *
   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 volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:268: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 volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:268: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 volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:268: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 volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:268:21: sparse:     expected void const volatile [noderef] <asn:2> *
   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:349:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:349:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:349:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:350:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:350:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:352:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:352:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:352:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:352:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:352:21: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:371:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:371:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:371:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:371:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:371:18: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:384:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:384:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:384:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:385:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:385:17: sparse:     expected void const volatile [noderef] <asn:2> *
   drivers/tty/serial/ucc_uart.c:385:17: sparse:     got restricted __be16 *
   drivers/tty/serial/ucc_uart.c:385:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] <asn:2> * @@     got restricted __be16 * @@
   drivers/tty/serial/ucc_uart.c:385:17: sparse:     expected void const volatile [noderef] <asn:2> *

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: 24513 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-29 13:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 14:04 drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) kbuild test robot
2020-06-05  5:51 kernel test robot
2020-10-21 20:30 kernel test robot
2020-12-29  2:57 kernel test robot
2021-04-29 13:14 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).