]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Protect fb_defio in drivers with CONFIG_KMS_FBDEV_EMULATION
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Aug 2016 16:52:38 +0000 (18:52 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 12 Aug 2016 08:42:00 +0000 (10:42 +0200)
commitdd2d5515d1409c7dc7175ff7b829f60a1db91c0a
tree11daa4a30c55449c78af9a8acdffe10d3ed01c50
parent5f2d047c450a5d9e9fa3aa8cbbdafbe681ca7fcc
drm: Protect fb_defio in drivers with CONFIG_KMS_FBDEV_EMULATION

For reasons that entirely elude me fb.h exposes all the structures,
even when it is not enabled. Except for special stuff like fb_defio.

Which means all the drivers which haven't yet switched over to the
defio support in the helpers and still roll their own, will fail
to compile when fbdev emulation is disabled. Protect just those
bits, as a gnarly reminder that conversion to the core defio helpers
would be good.

Cc: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1470847958-28465-6-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/qxl/qxl_fb.c
drivers/gpu/drm/udl/udl_fb.c