linux/drivers/staging/vboxvideo
Hans de Goede 5598e55a8d staging: vboxvideo: Use CONFIG_DRM_KMS_FB_HELPER to check for fbdefio availability
Checking for CONFIG_FB_DEFERRED_IO is not the right thing to do since
the fbdev code may be built as a module while vboxvideo is builtin.

This can only happen when DRM_KMS_FB_HELPER is not set:
a) DRM_VBOXVIDEO selects DRM_KMS_HELPER
b) DRM_KMS_FB_HELPER depends on DRM_KMS_HELPER
c) DRM_KMS_FB_HELPER selects FB_DEFERRED_IO

So when DRM_KMS_FB_HELPER is set and vboxvideo is builtin then
FB_DEFERRED_IO must be builtin too.

This commit moves the #ifdefs around fbdefio code over to
CONFIG_DRM_KMS_FB_HELPER, as other drm drivers already do, fixing:

drivers/staging/vboxvideo/vbox_fb.o: In function `vbox_fbdev_fini':
vbox_fb.c:(.text+0x36): undefined reference to `fb_deferred_io_cleanup'

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-31 18:29:32 +02:00
..
hgsmi_base.c
hgsmi_ch_setup.h
hgsmi_channels.h
hgsmi_defs.h
Kconfig staging: vboxvideo: select DRM_TTM 2017-08-18 15:57:15 -07:00
Makefile
modesetting.c
TODO staging: vboxvideo: Add dri-devel to lists of email-addresses to send patches to 2017-08-18 15:57:15 -07:00
vbox_drv.c staging: vboxvideo: make a couple of symbols static 2017-07-28 17:05:40 -07:00
vbox_drv.h
vbox_err.h
vbox_fb.c staging: vboxvideo: Use CONFIG_DRM_KMS_FB_HELPER to check for fbdefio availability 2017-08-31 18:29:32 +02:00
vbox_hgsmi.c
vbox_irq.c
vbox_main.c staging: vboxvideo: switch to drm_*{get,put} helpers 2017-08-18 15:57:15 -07:00
vbox_mode.c staging: vboxvideo: remove dead gamma lut code 2017-08-18 15:57:15 -07:00
vbox_prime.c
vbox_ttm.c staging: vboxvideo: make a couple of symbols static 2017-07-28 17:05:40 -07:00
vboxvideo_guest.h
vboxvideo_vbe.h
vboxvideo.h
vbva_base.c