Re: [PATCH v10] drm: Unplug drm device when unregistering it (v7)

From: kbuild test robot
Date: Thu Apr 13 2017 - 03:08:16 EST


Hi Jeffy,

[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.11-rc6 next-20170413]
[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/Jeffy-Chen/drm-Unplug-drm-device-when-unregistering-it-v7/20170413-130045
base: git://people.freedesktop.org/~airlied/linux.git drm-next
config: x86_64-randconfig-x012-201715 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/gpu//drm/udl/udl_drv.c: In function 'udl_usb_disconnect':
>> drivers/gpu//drm/udl/udl_drv.c:112:16: error: 'drm_dev' undeclared (first use in this function)
drm_dev_unref(drm_dev);
^~~~~~~
drivers/gpu//drm/udl/udl_drv.c:112:16: note: each undeclared identifier is reported only once for each function it appears in

vim +/drm_dev +112 drivers/gpu//drm/udl/udl_drv.c

106 struct drm_device *dev = usb_get_intfdata(interface);
107
108 drm_kms_helper_poll_disable(dev);
109 udl_fbdev_unplug(dev);
110 udl_drop_usb(dev);
111 drm_dev_unregister(dev);
> 112 drm_dev_unref(drm_dev);
113 }
114
115 /*

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

Attachment: .config.gz
Description: application/gzip