[PATCH] drm: compat: Fix compilation breakage due to drm_vblank_wait rename

kbuild test robot lkp at intel.com
Tue Jul 11 04:54:19 UTC 2017


Hi Laurent,

[auto build test ERROR on next-20170710]
[cannot apply to drm/drm-next drm-exynos/exynos-drm/for-next drm-intel/for-linux-next v4.12 v4.12-rc7 v4.12-rc6 v4.12]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Laurent-Pinchart/drm-compat-Fix-compilation-breakage-due-to-drm_vblank_wait-rename/20170711-121046
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers/gpu//drm/drm_ioc32.c: In function 'compat_drm_wait_vblank':
>> drivers/gpu//drm/drm_ioc32.c:842:31: error: 'drm_wait_vblank_ioctl' undeclared (first use in this function)
     err = drm_ioctl_kernel(file, drm_wait_vblank_ioctl, &req, DRM_UNLOCKED);
                                  ^~~~~~~~~~~~~~~~~~~~~
   drivers/gpu//drm/drm_ioc32.c:842:31: note: each undeclared identifier is reported only once for each function it appears in

vim +/drm_wait_vblank_ioctl +842 drivers/gpu//drm/drm_ioc32.c

   827	
   828	static int compat_drm_wait_vblank(struct file *file, unsigned int cmd,
   829					  unsigned long arg)
   830	{
   831		drm_wait_vblank32_t __user *argp = (void __user *)arg;
   832		drm_wait_vblank32_t req32;
   833		union drm_wait_vblank req;
   834		int err;
   835	
   836		if (copy_from_user(&req32, argp, sizeof(req32)))
   837			return -EFAULT;
   838	
   839		req.request.type = req32.request.type;
   840		req.request.sequence = req32.request.sequence;
   841		req.request.signal = req32.request.signal;
 > 842		err = drm_ioctl_kernel(file, drm_wait_vblank_ioctl, &req, DRM_UNLOCKED);
   843		if (err)
   844			return err;
   845	
   846		req32.reply.type = req.reply.type;
   847		req32.reply.sequence = req.reply.sequence;
   848		req32.reply.tval_sec = req.reply.tval_sec;
   849		req32.reply.tval_usec = req.reply.tval_usec;
   850		if (copy_to_user(argp, &req32, sizeof(req32)))
   851			return -EFAULT;
   852	
   853		return 0;
   854	}
   855	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 51461 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170711/91e7e0ef/attachment-0001.gz>


More information about the dri-devel mailing list