drivers/gpu/drm/udl/udl_fb.c:214: error: dereferencing pointer to incomplete type

From: kbuild test robot
Date: Tue Aug 09 2016 - 14:31:15 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 81abf2525827b29839a78fd55ab0699f033c41a5
commit: 0b6320dfdfea4c68602fa3b8a8d944bf9e442079 drm/virtio: make fbdev support really optional
date: 3 weeks ago
config: x86_64-randconfig-a0-08100141 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
git checkout 0b6320dfdfea4c68602fa3b8a8d944bf9e442079
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_open':
drivers/gpu/drm/udl/udl_fb.c:206: error: 'struct fb_info' has no member named 'fbdefio'
drivers/gpu/drm/udl/udl_fb.c:211: error: invalid application of 'sizeof' to incomplete type 'struct fb_deferred_io'
>> drivers/gpu/drm/udl/udl_fb.c:214: error: dereferencing pointer to incomplete type
drivers/gpu/drm/udl/udl_fb.c:215: error: dereferencing pointer to incomplete type
drivers/gpu/drm/udl/udl_fb.c:218: error: 'struct fb_info' has no member named 'fbdefio'
drivers/gpu/drm/udl/udl_fb.c: In function 'udl_fb_release':
drivers/gpu/drm/udl/udl_fb.c:238: error: 'struct fb_info' has no member named 'fbdefio'
drivers/gpu/drm/udl/udl_fb.c:240: error: 'struct fb_info' has no member named 'fbdefio'
drivers/gpu/drm/udl/udl_fb.c:241: error: 'struct fb_info' has no member named 'fbdefio'
At top level:
cc1: warning: unrecognized command line option "-Wno-maybe-uninitialized"

vim +214 drivers/gpu/drm/udl/udl_fb.c

5320918b9 Dave Airlie 2010-12-15 200 /* If the USB device is gone, we don't accept new opens */
5320918b9 Dave Airlie 2010-12-15 201 if (drm_device_is_unplugged(udl->ddev))
5320918b9 Dave Airlie 2010-12-15 202 return -ENODEV;
5320918b9 Dave Airlie 2010-12-15 203
5320918b9 Dave Airlie 2010-12-15 204 ufbdev->fb_count++;
5320918b9 Dave Airlie 2010-12-15 205
5320918b9 Dave Airlie 2010-12-15 @206 if (fb_defio && (info->fbdefio == NULL)) {
5320918b9 Dave Airlie 2010-12-15 207 /* enable defio at last moment if not disabled by client */
5320918b9 Dave Airlie 2010-12-15 208
5320918b9 Dave Airlie 2010-12-15 209 struct fb_deferred_io *fbdefio;
5320918b9 Dave Airlie 2010-12-15 210
5320918b9 Dave Airlie 2010-12-15 211 fbdefio = kmalloc(sizeof(struct fb_deferred_io), GFP_KERNEL);
5320918b9 Dave Airlie 2010-12-15 212
5320918b9 Dave Airlie 2010-12-15 213 if (fbdefio) {
5320918b9 Dave Airlie 2010-12-15 @214 fbdefio->delay = DL_DEFIO_WRITE_DELAY;
e37588240 Noralf Trønnes 2016-04-28 215 fbdefio->deferred_io = drm_fb_helper_deferred_io;
5320918b9 Dave Airlie 2010-12-15 216 }
5320918b9 Dave Airlie 2010-12-15 217

:::::: The code at line 214 was first introduced by commit
:::::: 5320918b9a87865223fd6b228e530bf30bc64d9d drm/udl: initial UDL driver (v4)

:::::: TO: Dave Airlie <airlied@xxxxxxxxx>
:::::: CC: Dave Airlie <airlied@xxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data