lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 18 Jul 2020 01:18:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/video/fbdev/riva/fbdev.c:788:29: sparse: sparse: cast
 removes address space '__iomem' of expression

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8882572675c1bb1cc544f4e229a11661f1fc52e4
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   4 weeks ago
config: m68k-randconfig-s031-20200717 (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.2-49-g707c5017-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=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)

   drivers/video/fbdev/riva/fbdev.c:493:14: sparse: sparse: cast to restricted __le16
   drivers/video/fbdev/riva/fbdev.c:493:14: sparse: sparse: cast to restricted __le16
   drivers/video/fbdev/riva/fbdev.c:493:14: sparse: sparse: cast to restricted __le16
   drivers/video/fbdev/riva/fbdev.c:493:14: sparse: sparse: cast to restricted __le16
   drivers/video/fbdev/riva/fbdev.c:494:14: sparse: sparse: cast to restricted __le16
   drivers/video/fbdev/riva/fbdev.c:494:14: sparse: sparse: cast to restricted __le16
   drivers/video/fbdev/riva/fbdev.c:494:14: sparse: sparse: cast to restricted __le16
   drivers/video/fbdev/riva/fbdev.c:494:14: sparse: sparse: cast to restricted __le16
>> drivers/video/fbdev/riva/fbdev.c:788:29: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:795:37: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:797:37: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:803:38: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:805:38: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:808:37: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:953:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:954:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:955:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:956:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:957:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:973:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:974:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:982:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:983:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:984:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1421:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1422:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1424:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1425:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1428:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1455:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1456:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1458:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1461:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1524:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1525:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1527:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1530:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1531:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1532:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1534:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1536:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1544:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1549:25: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1554:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1559:25: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:1605:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/fbdev.c:2064:42: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected void [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *[usertype] PRAMIN @@
   drivers/video/fbdev/riva/fbdev.c:2064:42: sparse:     expected void [noderef] __iomem *addr
   drivers/video/fbdev/riva/fbdev.c:2064:42: sparse:     got unsigned int volatile [noderef] [usertype] __iomem *[usertype] PRAMIN
   drivers/video/fbdev/riva/fbdev.c:2097:34: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected void [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *[usertype] PRAMIN @@
   drivers/video/fbdev/riva/fbdev.c:2097:34: sparse:     expected void [noderef] __iomem *addr
   drivers/video/fbdev/riva/fbdev.c:2097:34: sparse:     got unsigned int volatile [noderef] [usertype] __iomem *[usertype] PRAMIN
   arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:205:9: sparse: sparse: cast removes address space '__iomem' of expression
--
>> drivers/video/fbdev/riva/riva_hw.c:65:14: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:66:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:73:14: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:74:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:81:14: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:82:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:621:11: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:628:32: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:810:11: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:813:11: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:816:12: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:820:32: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1073:11: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1076:11: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1079:12: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1083:32: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1085:32: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1130:11: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1318:31: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1372:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1382:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1383:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1400:5: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1401:5: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1408:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1409:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1410:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1411:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1416:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1417:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1422:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1423:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1428:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1429:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1434:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1435:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1436:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1437:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1438:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1439:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1440:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1441:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1442:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1448:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1449:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1450:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1451:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1455:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1456:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1460:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1461:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1466:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1467:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1472:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1473:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1477:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1478:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1479:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1480:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1481:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1482:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1483:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1484:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1495:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1496:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1497:13: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1501:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1502:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1506:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1507:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1512:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1513:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1518:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1519:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1525:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1526:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1527:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1528:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1529:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1530:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1531:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1532:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1533:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1535:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1536:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1537:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1538:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1539:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1540:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1541:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1542:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1543:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1544:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1545:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1545:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1546:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1546:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1549:16: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1550:16: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/riva_hw.c:1552:13: sparse: sparse: too many warnings
--
>> drivers/video/fbdev/riva/nv_driver.c:60:18: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:61:18: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:63:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:65:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:67:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:67:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:69:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:70:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:74:20: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:76:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:76:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:79:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:80:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:139:29: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:145:28: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:166:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:167:31: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:168:34: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:172:41: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:190:33: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:204:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:205:36: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:208:33: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:240:34: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:280:21: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:281:31: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:282:34: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/video/fbdev/riva/nv_driver.c:301:26: sparse: sparse: cast removes address space '__iomem' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '__iomem' of expression
--
   drivers/gpu/drm/ttm/ttm_bo_util.c:219:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[assigned] addr @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:219:30: sparse:     expected void *[assigned] addr
   drivers/gpu/drm/ttm/ttm_bo_util.c:219:30: sparse:     got void [noderef] __iomem *
   drivers/gpu/drm/ttm/ttm_bo_util.c:221:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *[assigned] addr @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:221:30: sparse:     expected void *[assigned] addr
   drivers/gpu/drm/ttm/ttm_bo_util.c:221:30: sparse:     got void [noderef] __iomem *
>> drivers/gpu/drm/ttm/ttm_bo_util.c:241:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void *virtual @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:241:25: sparse:     expected void [noderef] __iomem *addr
   drivers/gpu/drm/ttm/ttm_bo_util.c:241:25: sparse:     got void *virtual
   drivers/gpu/drm/ttm/ttm_bo_util.c:256:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:256:40: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/ttm/ttm_bo_util.c:256:40: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/ttm/ttm_bo_util.c:256:49: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:256:49: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/ttm/ttm_bo_util.c:256:49: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/ttm/ttm_bo_util.c:275:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *src @@     got void *[assigned] src @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:275:28: sparse:     expected void const volatile [noderef] __iomem *src
   drivers/gpu/drm/ttm/ttm_bo_util.c:275:28: sparse:     got void *[assigned] src
   drivers/gpu/drm/ttm/ttm_bo_util.c:297:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *dst @@     got void *[assigned] dst @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:297:21: sparse:     expected void volatile [noderef] __iomem *dst
   drivers/gpu/drm/ttm/ttm_bo_util.c:297:21: sparse:     got void *[assigned] dst
   drivers/gpu/drm/ttm/ttm_bo_util.c:344:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void *[addressable] new_iomap @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:344:27: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/gpu/drm/ttm/ttm_bo_util.c:344:27: sparse:     got void *[addressable] new_iomap
   drivers/gpu/drm/ttm/ttm_bo_util.c:516:38: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *virtual @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:516:38: sparse:     expected void *virtual
   drivers/gpu/drm/ttm/ttm_bo_util.c:516:38: sparse:     got void [noderef] __iomem *
   drivers/gpu/drm/ttm/ttm_bo_util.c:519:38: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *virtual @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:519:38: sparse:     expected void *virtual
   drivers/gpu/drm/ttm/ttm_bo_util.c:519:38: sparse:     got void [noderef] __iomem *
   drivers/gpu/drm/ttm/ttm_bo_util.c:608:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void *virtual @@
   drivers/gpu/drm/ttm/ttm_bo_util.c:608:28: sparse:     expected void [noderef] __iomem *addr
   drivers/gpu/drm/ttm/ttm_bo_util.c:608:28: sparse:     got void *virtual
--
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: cast removes address space '__user' of expression
>> drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
>> drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse:     expected void const [noderef] __user *__pu_ptr
   drivers/gpu/drm/radeon/radeon_ttm.c:979:21: sparse:     got unsigned int [usertype] *
   arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '__iomem' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
--
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:819:42: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:1094:5: sparse: sparse: symbol 'amdgpu_ttm_gart_bind' was not declared. Should it be static?
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__gu_ptr @@     got unsigned int [usertype] * @@
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse:     expected void const [noderef] __user *__gu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:2353:21: sparse: sparse: cast removes address space '__user' of expression
--
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: cast removes address space '__user' of expression
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
>> drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse:     expected void const [noderef] __user *__pu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:384:29: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse:     expected void const [noderef] __user *__pu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c:399:21: sparse:     got unsigned int [usertype] *
--
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:138:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __poll_t ( *poll )( ... ) @@     got unsigned int ( * )( ... ) @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:138:17: sparse:     expected restricted __poll_t ( *poll )( ... )
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:138:17: sparse:     got unsigned int ( * )( ... )
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: cast removes address space '__user' of expression
>> drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
>> drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse:     expected void const [noderef] __user *__pu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:257:29: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
>> drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__gu_ptr @@     got unsigned int [usertype] * @@
>> drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse:     expected void const [noderef] __user *__gu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:259:29: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse:     expected void const [noderef] __user *__pu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:346:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__gu_ptr @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse:     expected void const [noderef] __user *__gu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:400:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse:     expected void const [noderef] __user *__pu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:457:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__gu_ptr @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse:     expected void const [noderef] __user *__gu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:511:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse:     expected void const [noderef] __user *__pu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:568:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__gu_ptr @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse:     expected void const [noderef] __user *__gu_ptr
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:622:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __user * @@     got unsigned int [usertype] * @@
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse:     expected void const volatile [noderef] __user *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse:     got unsigned int [usertype] *
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: cast removes address space '__user' of expression
   drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:719:21: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const [noderef] __user *__pu_ptr @@     got unsigned int [usertype] * @@
--
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:104:58: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem * @@     got void * @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:104:58: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:104:58: sparse:     got void *
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:110:58: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem * @@     got void * @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:110:58: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:110:58: sparse:     got void *
>> drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:157:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void *[assigned] emap @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:157:25: sparse:     expected void [noderef] __iomem *addr
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:157:25: sparse:     got void *[assigned] emap
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:174:19: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *map @@     got void [noderef] __iomem * @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:174:19: sparse:     expected void *map
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:174:19: sparse:     got void [noderef] __iomem *
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:225:28: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void [noderef] __iomem * @@     got void *map @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:225:28: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:225:28: sparse:     got void *map
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:233:28: sparse: sparse: incorrect type in return expression (different address spaces) @@     expected void [noderef] __iomem * @@     got void *map @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:233:28: sparse:     expected void [noderef] __iomem *
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:233:28: sparse:     got void *map
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:240:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void [noderef] __iomem *map @@     got void *map @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:240:21: sparse:     expected void [noderef] __iomem *map
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:240:21: sparse:     got void *map
>> drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:327:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void [noderef] __iomem *addr @@     got void *[assigned] map @@
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:327:25: sparse:     expected void [noderef] __iomem *addr
   drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv50.c:327:25: sparse:     got void *[assigned] map

vim +/__iomem +788 drivers/video/fbdev/riva/fbdev.c

^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  661  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  662  /**
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  663   * riva_load_video_mode - calculate timings
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  664   * @info: pointer to fb_info object containing info for current riva board
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  665   *
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  666   * DESCRIPTION:
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  667   * Calculate some timings and then send em off to riva_load_state().
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  668   *
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  669   * CALLED FROM:
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  670   * rivafb_set_par()
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  671   */
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  672  static int riva_load_video_mode(struct fb_info *info)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  673  {
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  674  	int bpp, width, hDisplaySize, hDisplay, hStart,
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  675  	    hEnd, hTotal, height, vDisplay, vStart, vEnd, vTotal, dotClock;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  676  	int hBlankStart, hBlankEnd, vBlankStart, vBlankEnd;
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  677  	int rc;
f4a41836f1215a drivers/video/riva/fbdev.c       Antonino A. Daplas 2006-01-09  678  	struct riva_par *par = info->par;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  679  	struct riva_regs newmode;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  680  	
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  681  	NVTRACE_ENTER();
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  682  	/* time to calculate */
535a09ad59286b drivers/video/riva/fbdev.c       Guido Guenther     2006-10-03  683  	rivafb_blank(FB_BLANK_NORMAL, info);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  684  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  685  	bpp = info->var.bits_per_pixel;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  686  	if (bpp == 16 && info->var.green.length == 5)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  687  		bpp = 15;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  688  	width = info->var.xres_virtual;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  689  	hDisplaySize = info->var.xres;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  690  	hDisplay = (hDisplaySize / 8) - 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  691  	hStart = (hDisplaySize + info->var.right_margin) / 8 - 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  692  	hEnd = (hDisplaySize + info->var.right_margin +
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  693  		info->var.hsync_len) / 8 - 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  694  	hTotal = (hDisplaySize + info->var.right_margin +
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  695  		  info->var.hsync_len + info->var.left_margin) / 8 - 5;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  696  	hBlankStart = hDisplay;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  697  	hBlankEnd = hTotal + 4;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  698  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  699  	height = info->var.yres_virtual;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  700  	vDisplay = info->var.yres - 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  701  	vStart = info->var.yres + info->var.lower_margin - 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  702  	vEnd = info->var.yres + info->var.lower_margin +
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  703  	       info->var.vsync_len - 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  704  	vTotal = info->var.yres + info->var.lower_margin +
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  705  		 info->var.vsync_len + info->var.upper_margin + 2;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  706  	vBlankStart = vDisplay;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  707  	vBlankEnd = vTotal + 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  708  	dotClock = 1000000000 / info->var.pixclock;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  709  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  710  	memcpy(&newmode, &reg_template, sizeof(struct riva_regs));
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  711  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  712  	if ((info->var.vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  713  		vTotal |= 1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  714  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  715  	if (par->FlatPanel) {
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  716  		vStart = vTotal - 3;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  717  		vEnd = vTotal - 2;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  718  		vBlankStart = vStart;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  719  		hStart = hTotal - 3;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  720  		hEnd = hTotal - 2;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  721  		hBlankEnd = hTotal + 4;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  722  	}
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  723  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  724  	newmode.crtc[0x0] = Set8Bits (hTotal); 
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  725  	newmode.crtc[0x1] = Set8Bits (hDisplay);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  726  	newmode.crtc[0x2] = Set8Bits (hBlankStart);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  727  	newmode.crtc[0x3] = SetBitField (hBlankEnd, 4: 0, 4:0) | SetBit (7);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  728  	newmode.crtc[0x4] = Set8Bits (hStart);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  729  	newmode.crtc[0x5] = SetBitField (hBlankEnd, 5: 5, 7:7)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  730  		| SetBitField (hEnd, 4: 0, 4:0);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  731  	newmode.crtc[0x6] = SetBitField (vTotal, 7: 0, 7:0);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  732  	newmode.crtc[0x7] = SetBitField (vTotal, 8: 8, 0:0)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  733  		| SetBitField (vDisplay, 8: 8, 1:1)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  734  		| SetBitField (vStart, 8: 8, 2:2)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  735  		| SetBitField (vBlankStart, 8: 8, 3:3)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  736  		| SetBit (4)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  737  		| SetBitField (vTotal, 9: 9, 5:5)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  738  		| SetBitField (vDisplay, 9: 9, 6:6)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  739  		| SetBitField (vStart, 9: 9, 7:7);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  740  	newmode.crtc[0x9] = SetBitField (vBlankStart, 9: 9, 5:5)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  741  		| SetBit (6);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  742  	newmode.crtc[0x10] = Set8Bits (vStart);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  743  	newmode.crtc[0x11] = SetBitField (vEnd, 3: 0, 3:0)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  744  		| SetBit (5);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  745  	newmode.crtc[0x12] = Set8Bits (vDisplay);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  746  	newmode.crtc[0x13] = (width / 8) * ((bpp + 1) / 8);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  747  	newmode.crtc[0x15] = Set8Bits (vBlankStart);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  748  	newmode.crtc[0x16] = Set8Bits (vBlankEnd);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  749  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  750  	newmode.ext.screen = SetBitField(hBlankEnd,6:6,4:4)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  751  		| SetBitField(vBlankStart,10:10,3:3)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  752  		| SetBitField(vStart,10:10,2:2)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  753  		| SetBitField(vDisplay,10:10,1:1)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  754  		| SetBitField(vTotal,10:10,0:0);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  755  	newmode.ext.horiz  = SetBitField(hTotal,8:8,0:0) 
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  756  		| SetBitField(hDisplay,8:8,1:1)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  757  		| SetBitField(hBlankStart,8:8,2:2)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  758  		| SetBitField(hStart,8:8,3:3);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  759  	newmode.ext.extra  = SetBitField(vTotal,11:11,0:0)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  760  		| SetBitField(vDisplay,11:11,2:2)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  761  		| SetBitField(vStart,11:11,4:4)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  762  		| SetBitField(vBlankStart,11:11,6:6); 
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  763  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  764  	if ((info->var.vmode & FB_VMODE_MASK) == FB_VMODE_INTERLACED) {
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  765  		int tmp = (hTotal >> 1) & ~1;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  766  		newmode.ext.interlace = Set8Bits(tmp);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  767  		newmode.ext.horiz |= SetBitField(tmp, 8:8,4:4);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  768  	} else 
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  769  		newmode.ext.interlace = 0xff; /* interlace off */
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  770  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  771  	if (par->riva.Architecture >= NV_ARCH_10)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  772  		par->riva.CURSOR = (U032 __iomem *)(info->screen_base + par->riva.CursorStart);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  773  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  774  	if (info->var.sync & FB_SYNC_HOR_HIGH_ACT)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  775  		newmode.misc_output &= ~0x40;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  776  	else
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  777  		newmode.misc_output |= 0x40;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  778  	if (info->var.sync & FB_SYNC_VERT_HIGH_ACT)
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  779  		newmode.misc_output &= ~0x80;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  780  	else
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  781  		newmode.misc_output |= 0x80;	
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  782  
e2281080835434 drivers/video/fbdev/riva/fbdev.c Sinan Kaya         2017-12-19  783  	rc = CalcStateExt(&par->riva, &newmode.ext, par->pdev, bpp, width,
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  784  			  hDisplaySize, height, dotClock);
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  785  	if (rc)
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  786  		goto out;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  787  
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16 @788  	newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) &
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  789  		0xfff000ff;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  790  	if (par->FlatPanel == 1) {
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  791  		newmode.ext.pixel |= (1 << 7);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  792  		newmode.ext.scale |= (1 << 8);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  793  	}
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  794  	if (par->SecondCRTC) {
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  795  		newmode.ext.head  = NV_RD32(par->riva.PCRTC0, 0x00000860) &
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  796  			~0x00001000;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  797  		newmode.ext.head2 = NV_RD32(par->riva.PCRTC0, 0x00002860) |
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  798  			0x00001000;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  799  		newmode.ext.crtcOwner = 3;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  800  		newmode.ext.pllsel |= 0x20000800;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  801  		newmode.ext.vpll2 = newmode.ext.vpll;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  802  	} else if (par->riva.twoHeads) {
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  803  		newmode.ext.head  =  NV_RD32(par->riva.PCRTC0, 0x00000860) |
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  804  			0x00001000;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  805  		newmode.ext.head2 =  NV_RD32(par->riva.PCRTC0, 0x00002860) &
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  806  			~0x00001000;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  807  		newmode.ext.crtcOwner = 0;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  808  		newmode.ext.vpll2 = NV_RD32(par->riva.PRAMDAC0, 0x00000520);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  809  	}
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  810  	if (par->FlatPanel == 1) {
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  811  		newmode.ext.pixel |= (1 << 7);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  812  		newmode.ext.scale |= (1 << 8);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  813  	}
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  814  	newmode.ext.cursorConfig = 0x02000100;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  815  	par->current_state = newmode;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  816  	riva_load_state(par, &par->current_state);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  817  	par->riva.LockUnlock(&par->riva, 0); /* important for HW cursor */
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  818  
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  819  out:
535a09ad59286b drivers/video/riva/fbdev.c       Guido Guenther     2006-10-03  820  	rivafb_blank(FB_BLANK_UNBLANK, info);
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  821  	NVTRACE_LEAVE();
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  822  
fd717689f46436 drivers/video/riva/fbdev.c       Jeff Garzik        2006-12-08  823  	return rc;
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  824  }
^1da177e4c3f41 drivers/video/riva/fbdev.c       Linus Torvalds     2005-04-16  825  

:::::: The code at line 788 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (24842 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ