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]
Message-ID: <202007302058.iObdNZnF%lkp@intel.com>
Date:   Thu, 30 Jul 2020 20:02:05 +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/nvidia/nvidia.c:1411:20: sparse: sparse:
 incorrect type in argument 1 (different modifiers)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   83bdc7275e6206f560d247be856bceba3e1ed8f2
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   6 weeks ago
config: arc-randconfig-s032-20200730 (attached as .config)
compiler: arc-elf-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-98-g4932334a-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=arc 

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/nvidia/nvidia.c:1411:20: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected void const [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *REGS @@
>> drivers/video/fbdev/nvidia/nvidia.c:1411:20: sparse:     expected void const [noderef] __iomem *addr
   drivers/video/fbdev/nvidia/nvidia.c:1411:20: sparse:     got unsigned int volatile [noderef] [usertype] __iomem *REGS
   drivers/video/fbdev/nvidia/nvidia.c:1436:20: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected void const [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *REGS @@
   drivers/video/fbdev/nvidia/nvidia.c:1436:20: sparse:     expected void const [noderef] __iomem *addr
   drivers/video/fbdev/nvidia/nvidia.c:1436:20: sparse:     got unsigned int volatile [noderef] [usertype] __iomem *REGS
--
   drivers/uio/uio_aec.c:44:49: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void [noderef] __iomem *int_flag @@     got void * @@
   drivers/uio/uio_aec.c:44:49: sparse:     expected void [noderef] __iomem *int_flag
   drivers/uio/uio_aec.c:44:49: sparse:     got void *
   drivers/uio/uio_aec.c:50:49: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:50:49: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:50:49: sparse:     got void *
   drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:59:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:59:9: sparse:     got void *
   drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:59:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:59:9: sparse:     got void *
   drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:59:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:59:9: sparse:     got void *
   drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:59:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:59:9: sparse:     got void *
   drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:59:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:59:9: sparse:     got void *
   drivers/uio/uio_aec.c:59:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:59:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:59:9: sparse:     got void *
   drivers/uio/uio_aec.c:88:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *priv @@     got void [noderef] __iomem * @@
   drivers/uio/uio_aec.c:88:20: sparse:     expected void *priv
   drivers/uio/uio_aec.c:88:20: sparse:     got void [noderef] __iomem *
   drivers/uio/uio_aec.c:104:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:104:42: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:104:42: sparse:     got void *
   drivers/uio/uio_aec.c:105:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:105:43: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:105:43: sparse:     got void *
   drivers/uio/uio_aec.c:106:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:106:34: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:106:34: sparse:     got void *
   drivers/uio/uio_aec.c:115:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *p @@     got void *priv @@
   drivers/uio/uio_aec.c:115:31: sparse:     expected void [noderef] __iomem *p
   drivers/uio/uio_aec.c:115:31: sparse:     got void *priv
   drivers/uio/uio_aec.c:130:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:130:42: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:130:42: sparse:     got void *
   drivers/uio/uio_aec.c:131:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:131:43: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:131:43: sparse:     got void *
   drivers/uio/uio_aec.c:133:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void * @@
   drivers/uio/uio_aec.c:133:28: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/uio/uio_aec.c:133:28: sparse:     got void *
>> drivers/uio/uio_aec.c:138:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const [noderef] __iomem *addr @@     got void *priv @@
>> drivers/uio/uio_aec.c:138:21: sparse:     expected void const [noderef] __iomem *addr
   drivers/uio/uio_aec.c:138:21: sparse:     got void *priv
--
   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:2064:42: sparse: sparse: incorrect type in argument 1 (different modifiers) @@     expected void const [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *[usertype] PRAMIN @@
>> drivers/video/fbdev/riva/fbdev.c:2064:42: sparse:     expected void const [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 const [noderef] __iomem *addr @@     got unsigned int volatile [noderef] [usertype] __iomem *[usertype] PRAMIN @@
   drivers/video/fbdev/riva/fbdev.c:2097:34: sparse:     expected void const [noderef] __iomem *addr
   drivers/video/fbdev/riva/fbdev.c:2097:34: sparse:     got unsigned int volatile [noderef] [usertype] __iomem *[usertype] PRAMIN

vim +1411 drivers/video/fbdev/nvidia/nvidia.c

^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1270  
48c68c4f1b5424 drivers/video/nvidia/nvidia.c       Greg Kroah-Hartman     2012-12-21  1271  static int nvidiafb_probe(struct pci_dev *pd, const struct pci_device_id *ent)
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1272  {
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1273  	struct nvidia_par *par;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1274  	struct fb_info *info;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1275  	unsigned short cmd;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1276  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1277  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1278  	NVTRACE_ENTER();
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1279  	assert(pd != NULL);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1280  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1281  	info = framebuffer_alloc(sizeof(struct nvidia_par), &pd->dev);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1282  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1283  	if (!info)
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1284  		goto err_out;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1285  
c439e345425434 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1286  	par = info->par;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1287  	par->pci_dev = pd;
f5610b9c3a2896 drivers/video/nvidia/nvidia.c       Jiri Slaby             2007-02-12  1288  	info->pixmap.addr = kzalloc(8 * 1024, GFP_KERNEL);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1289  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1290  	if (info->pixmap.addr == NULL)
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1291  		goto err_out_kfree;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1292  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1293  	if (pci_enable_device(pd)) {
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1294  		printk(KERN_ERR PFX "cannot enable PCI device\n");
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1295  		goto err_out_enable;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1296  	}
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1297  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1298  	if (pci_request_regions(pd, "nvidiafb")) {
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1299  		printk(KERN_ERR PFX "cannot request PCI regions\n");
a06630f3e7fb29 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-06-26  1300  		goto err_out_enable;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1301  	}
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1302  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1303  	par->FlatPanel = flatpanel;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1304  	if (flatpanel == 1)
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1305  		printk(KERN_INFO PFX "flatpanel support enabled\n");
b8c49ef6aeef66 drivers/video/nvidia/nvidia.c       Benjamin Herrenschmidt 2005-11-07  1306  	par->FPDither = fpdither;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1307  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1308  	par->CRTCnumber = forceCRTC;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1309  	par->FpScale = (!noscale);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1310  	par->paneltweak = paneltweak;
3c03ec209af1dd drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2007-10-16  1311  	par->reverse_i2c = reverse_i2c;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1312  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1313  	/* enable IO and mem if not already done */
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1314  	pci_read_config_word(pd, PCI_COMMAND, &cmd);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1315  	cmd |= (PCI_COMMAND_IO | PCI_COMMAND_MEMORY);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1316  	pci_write_config_word(pd, PCI_COMMAND, cmd);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1317  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1318  	nvidiafb_fix.mmio_start = pci_resource_start(pd, 0);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1319  	nvidiafb_fix.smem_start = pci_resource_start(pd, 1);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1320  	nvidiafb_fix.mmio_len = pci_resource_len(pd, 0);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1321  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1322  	par->REGS = ioremap(nvidiafb_fix.mmio_start, nvidiafb_fix.mmio_len);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1323  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1324  	if (!par->REGS) {
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1325  		printk(KERN_ERR PFX "cannot ioremap MMIO base\n");
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1326  		goto err_out_free_base0;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1327  	}
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1328  
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1329  	par->Chipset = nvidia_get_chipset(info);
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1330  	par->Architecture = nvidia_get_arch(info);
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1331  
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1332  	if (par->Architecture == 0) {
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1333  		printk(KERN_ERR PFX "unknown NV_ARCH\n");
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1334  		goto err_out_arch;
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1335  	}
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1336  
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1337  	sprintf(nvidiafb_fix.id, "NV%x", (pd->device & 0x0ff0) >> 4);
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1338  
918799ab6f2788 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1339  	if (NVCommonSetup(info))
918799ab6f2788 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1340  		goto err_out_arch;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1341  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1342  	par->FbAddress = nvidiafb_fix.smem_start;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1343  	par->FbMapSize = par->RamAmountKBytes * 1024;
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1344  	if (vram && vram * 1024 * 1024 < par->FbMapSize)
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1345  		par->FbMapSize = vram * 1024 * 1024;
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1346  
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1347  	/* Limit amount of vram to 64 MB */
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1348  	if (par->FbMapSize > 64 * 1024 * 1024)
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1349  		par->FbMapSize = 64 * 1024 * 1024;
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1350  
0137ecfdc3453f drivers/video/nvidia/nvidia.c       Benjamin Herrenschmidt 2006-01-09  1351  	if(par->Architecture >= NV_ARCH_40)
0137ecfdc3453f drivers/video/nvidia/nvidia.c       Benjamin Herrenschmidt 2006-01-09  1352    	        par->FbUsableSize = par->FbMapSize - (560 * 1024);
0137ecfdc3453f drivers/video/nvidia/nvidia.c       Benjamin Herrenschmidt 2006-01-09  1353  	else
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1354  		par->FbUsableSize = par->FbMapSize - (128 * 1024);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1355  	par->ScratchBufferSize = (par->Architecture < NV_ARCH_10) ? 8 * 1024 :
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1356  	    16 * 1024;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1357  	par->ScratchBufferStart = par->FbUsableSize - par->ScratchBufferSize;
0137ecfdc3453f drivers/video/nvidia/nvidia.c       Benjamin Herrenschmidt 2006-01-09  1358  	par->CursorStart = par->FbUsableSize + (32 * 1024);
0137ecfdc3453f drivers/video/nvidia/nvidia.c       Benjamin Herrenschmidt 2006-01-09  1359  
3b213c2f6f563b drivers/video/fbdev/nvidia/nvidia.c Luis R. Rodriguez      2015-04-21  1360  	info->screen_base = ioremap_wc(nvidiafb_fix.smem_start,
3b213c2f6f563b drivers/video/fbdev/nvidia/nvidia.c Luis R. Rodriguez      2015-04-21  1361  				       par->FbMapSize);
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1362  	info->screen_size = par->FbUsableSize;
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1363  	nvidiafb_fix.smem_len = par->RamAmountKBytes * 1024;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1364  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1365  	if (!info->screen_base) {
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1366  		printk(KERN_ERR PFX "cannot ioremap FB base\n");
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1367  		goto err_out_free_base1;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1368  	}
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1369  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1370  	par->FbStart = info->screen_base;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1371  
3b213c2f6f563b drivers/video/fbdev/nvidia/nvidia.c Luis R. Rodriguez      2015-04-21  1372  	if (!nomtrr)
3b213c2f6f563b drivers/video/fbdev/nvidia/nvidia.c Luis R. Rodriguez      2015-04-21  1373  		par->wc_cookie = arch_phys_wc_add(nvidiafb_fix.smem_start,
3b213c2f6f563b drivers/video/fbdev/nvidia/nvidia.c Luis R. Rodriguez      2015-04-21  1374  						  par->RamAmountKBytes * 1024);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1375  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1376  	info->fbops = &nvidia_fb_ops;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1377  	info->fix = nvidiafb_fix;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1378  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1379  	if (nvidia_set_fbinfo(info) < 0) {
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1380  		printk(KERN_ERR PFX "error setting initial video mode\n");
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1381  		goto err_out_iounmap_fb;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1382  	}
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1383  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1384  	nvidia_save_vga(par, &par->SavedReg);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1385  
ce38cac48209d2 drivers/video/nvidia/nvidia.c       Guido Guenther         2006-07-30  1386  	pci_set_drvdata(pd, info);
202d4e602555e6 drivers/video/nvidia/nvidia.c       Richard Purdie         2007-03-03  1387  
202d4e602555e6 drivers/video/nvidia/nvidia.c       Richard Purdie         2007-03-03  1388  	if (backlight)
ce38cac48209d2 drivers/video/nvidia/nvidia.c       Guido Guenther         2006-07-30  1389  		nvidia_bl_init(par);
202d4e602555e6 drivers/video/nvidia/nvidia.c       Richard Purdie         2007-03-03  1390  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1391  	if (register_framebuffer(info) < 0) {
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1392  		printk(KERN_ERR PFX "error registering nVidia framebuffer\n");
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1393  		goto err_out_iounmap_fb;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1394  	}
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1395  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1396  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1397  	printk(KERN_INFO PFX
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1398  	       "PCI nVidia %s framebuffer (%dMB @ 0x%lX)\n",
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1399  	       info->fix.id,
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1400  	       par->FbMapSize / (1024 * 1024), info->fix.smem_start);
5474c120aafe78 drivers/video/nvidia/nvidia.c       Michael Hanselmann     2006-06-25  1401  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1402  	NVTRACE_LEAVE();
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1403  	return 0;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1404  
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1405  err_out_iounmap_fb:
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1406  	iounmap(info->screen_base);
917bb0771aa077 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2005-05-01  1407  err_out_free_base1:
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1408  	fb_destroy_modedb(info->monspecs.modedb);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1409  	nvidia_delete_i2c_busses(par);
c549dc6422e4b7 drivers/video/nvidia/nvidia.c       Antonino A. Daplas     2006-01-09  1410  err_out_arch:
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16 @1411  	iounmap(par->REGS);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1412   err_out_free_base0:
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1413  	pci_release_regions(pd);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1414  err_out_enable:
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1415  	kfree(info->pixmap.addr);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1416  err_out_kfree:
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1417  	framebuffer_release(info);
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1418  err_out:
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1419  	return -ENODEV;
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1420  }
^1da177e4c3f41 drivers/video/nvidia/nvidia.c       Linus Torvalds         2005-04-16  1421  

:::::: The code at line 1411 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" (28942 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ