Messages in this thread | | | Date | Wed, 27 May 2020 22:04:32 +0800 | From | kbuild test robot <> | Subject | drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) |
| |
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 [unhandled content-type:application/gzip] | |