[vfs:for-next 79/92] drivers/video/fbdev/au1200fb.c:1427:7: error: implicit declaration of function 'copy_from_user'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-next
head:   81b4d4f98d74affef406b70d2f161bc3edd70d7a
commit: 92f82ba6f9eef1f45f34bd36f43b83d7fd3e9eed [79/92] mips: separate extable.h, switch module.h to it
config: mips-db1xxx_defconfig (attached as .config)
compiler: mipsel-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 92f82ba6f9eef1f45f34bd36f43b83d7fd3e9eed
        # save the attached .config to linux build tree
        make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   drivers/video/fbdev/au1200fb.c: In function 'au1200fb_ioctl':
>> drivers/video/fbdev/au1200fb.c:1427:7: error: implicit declaration of function 'copy_from_user' [-Werror=implicit-function-declaration]
      if (copy_from_user(&iodata, (void __user *) arg, sizeof(iodata)))
          ^~~~~~~~~~~~~~
>> drivers/video/fbdev/au1200fb.c:1475:9: error: implicit declaration of function 'copy_to_user' [-Werror=implicit-function-declaration]
      val = copy_to_user((void __user *) arg, &iodata, sizeof(iodata));
            ^~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/copy_from_user +1427 drivers/video/fbdev/au1200fb.c

f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1421  	plane = fbinfo2index(info);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1422  	print_dbg("au1200fb: ioctl %d on plane %d\n", cmd, plane);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1423  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1424  	if (cmd == AU1200_LCD_FB_IOCTL) {
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1425  		struct au1200_lcd_iodata_t iodata;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1426  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27 @1427  		if (copy_from_user(&iodata, (void __user *) arg, sizeof(iodata)))
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1428  			return -EFAULT;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1429  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1430  		print_dbg("FB IOCTL called\n");
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1431  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1432  		switch (iodata.subcmd) {
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1433  		case AU1200_LCD_SET_SCREEN:
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1434  			print_dbg("AU1200_LCD_SET_SCREEN\n");
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1435  			set_global(cmd, &iodata.global);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1436  			break;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1437  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1438  		case AU1200_LCD_GET_SCREEN:
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1439  			print_dbg("AU1200_LCD_GET_SCREEN\n");
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1440  			get_global(cmd, &iodata.global);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1441  			break;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1442  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1443  		case AU1200_LCD_SET_WINDOW:
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1444  			print_dbg("AU1200_LCD_SET_WINDOW\n");
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1445  			set_window(plane, &iodata.window);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1446  			break;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1447  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1448  		case AU1200_LCD_GET_WINDOW:
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1449  			print_dbg("AU1200_LCD_GET_WINDOW\n");
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1450  			get_window(plane, &iodata.window);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1451  			break;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1452  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1453  		case AU1200_LCD_SET_PANEL:
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1454  			print_dbg("AU1200_LCD_SET_PANEL\n");
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1455  			if ((iodata.global.panel_choice >= 0) &&
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1456  					(iodata.global.panel_choice <
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1457  					 NUM_PANELS))
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1458  			{
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1459  				struct panel_settings *newpanel;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1460  				panel_index = iodata.global.panel_choice;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1461  				newpanel = &known_lcd_panels[panel_index];
a9b71a8f drivers/video/au1200fb.c Manuel Lauss 2011-11-10  1462  				au1200_setpanel(newpanel, fbdev->pd);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1463  			}
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1464  			break;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1465  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1466  		case AU1200_LCD_GET_PANEL:
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1467  			print_dbg("AU1200_LCD_GET_PANEL\n");
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1468  			iodata.global.panel_choice = panel_index;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1469  			break;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1470  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1471  		default:
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1472  			return -EINVAL;
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1473  		}
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1474  
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27 @1475  		val = copy_to_user((void __user *) arg, &iodata, sizeof(iodata));
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1476  		if (val) {
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1477  			print_dbg("error: could not copy %d bytes\n", val);
f95ec3c6 drivers/video/au1200fb.c Ralf Baechle 2006-03-27  1478  			return -EFAULT;

:::::: The code at line 1427 was first introduced by commit
:::::: f95ec3c6df271ae4e6290cd6b95c18a009c76dc9 [PATCH] au1200fb: Alchemy Au1200 framebuffer driver

:::::: TO: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux