tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcde237b9b0eb1d19306e6f48c0a4e058907619f commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 3 weeks ago config: arm64-randconfig-s031-20200708 (attached as .config) compiler: aarch64-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.2-37-gc9676a3b-dirty git checkout 670d0a4b10704667765f7d18f7592993d02783aa # 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=arm64
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> sparse warnings: (new ones prefixed by >>) >> drivers/pci/controller/pci-xgene.c:512:26: sparse: sparse: incorrect type in >> assignment (different address spaces) @@ expected void *bar_addr @@ >> got void [noderef] __iomem * @@ drivers/pci/controller/pci-xgene.c:512:26: sparse: expected void *bar_addr >> drivers/pci/controller/pci-xgene.c:512:26: sparse: got void [noderef] >> __iomem * >> drivers/pci/controller/pci-xgene.c:513:17: sparse: sparse: incorrect type in >> argument 2 (different address spaces) @@ expected void volatile >> [noderef] __iomem *addr @@ got void *bar_addr @@ >> drivers/pci/controller/pci-xgene.c:513:17: sparse: expected void >> volatile [noderef] __iomem *addr drivers/pci/controller/pci-xgene.c:513:17: sparse: got void *bar_addr >> drivers/pci/controller/pci-xgene.c:514:17: sparse: sparse: incorrect type in >> argument 2 (different address spaces) @@ expected void volatile >> [noderef] __iomem *addr @@ got void * @@ drivers/pci/controller/pci-xgene.c:514:17: sparse: expected void volatile [noderef] __iomem *addr drivers/pci/controller/pci-xgene.c:514:17: sparse: got void * -- drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:264:21: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:268:21: sparse: expected void const volatile [noderef] __iomem *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:347:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:347:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:348:17: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:348:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:350:21: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:369:18: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:382:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:383:17: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:383:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:386:21: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:474:26: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:481:21: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:512:17: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:512:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:515:21: sparse: expected void const volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:604:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:605:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:606:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:612:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:613:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:614:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:625:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:626:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:627:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:637:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:638:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:639:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:663:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:664:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:665:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:666:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:667:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:668:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:669:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:670:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:671:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:672:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:674:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:675:9: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:713:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:714:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:715:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:716:17: sparse: expected void volatile [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 volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:719:17: sparse: expected void volatile [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 drivers/tty/serial/ucc_uart.c:720:17: sparse: got unsigned char * drivers/tty/serial/ucc_uart.c:721:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __be32 * @@ drivers/tty/serial/ucc_uart.c:721:17: sparse: expected void volatile [noderef] __iomem *addr drivers/tty/serial/ucc_uart.c:721:17: sparse: got restricted __be32 * drivers/tty/serial/ucc_uart.c:722: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:722:17: sparse: expected void volatile [noderef] __iomem *addr drivers/tty/serial/ucc_uart.c:722:17: sparse: got unsigned char * drivers/tty/serial/ucc_uart.c:724: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:724:17: sparse: expected void volatile [noderef] __iomem *addr drivers/tty/serial/ucc_uart.c:724:17: sparse: got unsigned char * drivers/tty/serial/ucc_uart.c:726:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:726:17: sparse: expected void volatile [noderef] __iomem *addr drivers/tty/serial/ucc_uart.c:726:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:727: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:727:17: sparse: expected void volatile [noderef] __iomem *addr drivers/tty/serial/ucc_uart.c:727: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] __iomem *addr @@ got restricted __be16 * @@ drivers/tty/serial/ucc_uart.c:728:17: sparse: expected void volatile [noderef] __iomem *addr drivers/tty/serial/ucc_uart.c:728:17: sparse: got restricted __be16 * drivers/tty/serial/ucc_uart.c:1000:27: sparse: sparse: cast removes address space '__iomem' of expression drivers/tty/serial/ucc_uart.c:1000:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct ucc_uart_pram [noderef] __iomem *uccup @@ got struct ucc_uart_pram * @@ drivers/tty/serial/ucc_uart.c:1000:24: sparse: expected struct ucc_uart_pram [noderef] __iomem *uccup drivers/tty/serial/ucc_uart.c:1000:24: sparse: got struct ucc_uart_pram * drivers/tty/serial/ucc_uart.c:1001:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct qe_bd *rx_bd_base @@ got struct qe_bd [noderef] __iomem *rx_bd @@ drivers/tty/serial/ucc_uart.c:1001:29: sparse: expected struct qe_bd *rx_bd_base drivers/tty/serial/ucc_uart.c:1001:29: sparse: got struct qe_bd [noderef] __iomem *rx_bd drivers/tty/serial/ucc_uart.c:1002:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct qe_bd *tx_bd_base @@ got struct qe_bd [noderef] __iomem *tx_bd @@ drivers/tty/serial/ucc_uart.c:1002:29: sparse: expected struct qe_bd *tx_bd_base drivers/tty/serial/ucc_uart.c:1002:29: sparse: got struct qe_bd [noderef] __iomem *tx_bd vim +512 drivers/pci/controller/pci-xgene.c 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 482 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 483 static void xgene_pcie_setup_ib_reg(struct xgene_pcie_port *port, 6dce5aa59e0bf2 drivers/pci/controller/pci-xgene.c Rob Herring 2019-10-28 484 struct resource_entry *entry, 6dce5aa59e0bf2 drivers/pci/controller/pci-xgene.c Rob Herring 2019-10-28 485 u8 *ib_reg_mask) 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 486 { 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 487 void __iomem *cfg_base = port->cfg_base; d963ab22ad32da drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 488 struct device *dev = port->dev; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 489 void *bar_addr; 4ecf6b0f83523f drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 490 u32 pim_reg; 6dce5aa59e0bf2 drivers/pci/controller/pci-xgene.c Rob Herring 2019-10-28 491 u64 cpu_addr = entry->res->start; 6dce5aa59e0bf2 drivers/pci/controller/pci-xgene.c Rob Herring 2019-10-28 492 u64 pci_addr = cpu_addr - entry->offset; 6dce5aa59e0bf2 drivers/pci/controller/pci-xgene.c Rob Herring 2019-10-28 493 u64 size = resource_size(entry->res); 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 494 u64 mask = ~(size - 1) | EN_REG; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 495 u32 flags = PCI_BASE_ADDRESS_MEM_TYPE_64; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 496 u32 bar_low; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 497 int region; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 498 6dce5aa59e0bf2 drivers/pci/controller/pci-xgene.c Rob Herring 2019-10-28 499 region = xgene_pcie_select_ib_reg(ib_reg_mask, size); 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 500 if (region < 0) { d963ab22ad32da drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 501 dev_warn(dev, "invalid pcie dma-range config\n"); 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 502 return; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 503 } 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 504 6dce5aa59e0bf2 drivers/pci/controller/pci-xgene.c Rob Herring 2019-10-28 505 if (entry->res->flags & IORESOURCE_PREFETCH) 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 506 flags |= PCI_BASE_ADDRESS_MEM_PREFETCH; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 507 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 508 bar_low = pcie_bar_low_val((u32)cpu_addr, flags); 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 509 switch (region) { 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 510 case 0: 4ecf6b0f83523f drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 511 xgene_pcie_set_ib_mask(port, BRIDGE_CFG_4, flags, size); 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 @512 bar_addr = cfg_base + PCI_BASE_ADDRESS_0; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 @513 writel(bar_low, bar_addr); 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 @514 writel(upper_32_bits(cpu_addr), bar_addr + 0x4); 4ecf6b0f83523f drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 515 pim_reg = PIM1_1L; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 516 break; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 517 case 1: 8e93c5132ca2e5 drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 518 xgene_pcie_writel(port, IBAR2, bar_low); 8e93c5132ca2e5 drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 519 xgene_pcie_writel(port, IR2MSK, lower_32_bits(mask)); 4ecf6b0f83523f drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 520 pim_reg = PIM2_1L; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 521 break; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 522 case 2: 8e93c5132ca2e5 drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 523 xgene_pcie_writel(port, IBAR3L, bar_low); 8e93c5132ca2e5 drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 524 xgene_pcie_writel(port, IBAR3L + 0x4, upper_32_bits(cpu_addr)); 8e93c5132ca2e5 drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 525 xgene_pcie_writel(port, IR3MSKL, lower_32_bits(mask)); 8e93c5132ca2e5 drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 526 xgene_pcie_writel(port, IR3MSKL + 0x4, upper_32_bits(mask)); 4ecf6b0f83523f drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 527 pim_reg = PIM3_1L; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 528 break; 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 529 } 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 530 4ecf6b0f83523f drivers/pci/host/pci-xgene.c Bjorn Helgaas 2016-10-06 531 xgene_pcie_setup_pims(port, pim_reg, pci_addr, ~(size - 1)); 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 532 } 5f6b6ccdbe1cdf drivers/pci/host/pci-xgene.c Tanmay Inamdar 2014-10-01 533 :::::: The code at line 512 was first introduced by commit :::::: 5f6b6ccdbe1cdfa5aa4347ec5412509b8995db27 PCI: xgene: Add APM X-Gene PCIe driver :::::: TO: Tanmay Inamdar <tinam...@apm.com> :::::: CC: Bjorn Helgaas <bhelg...@google.com> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip