drm/fb-helper: Move drm_fb_helper_force_kernel_mode() inside #ifdef
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Aug 2015 13:22:11 +0000 (15:22 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Aug 2015 12:13:08 +0000 (14:13 +0200)
commit2c4124fdeaea4b70120da3bddf90c4587e65bbc6
treee41ed501448404d6e5db71f4c4327636eb36c9d9
parent3d9e35a92e935e1f968e79f0e0b72ce4b9f14c3e
drm/fb-helper: Move drm_fb_helper_force_kernel_mode() inside #ifdef

If CONFIG_MAGIC_SYSRQ is not set:

    drivers/gpu/drm/drm_fb_helper.c:390:13: warning: 'drm_fb_helper_force_kernel_mode' defined but not used [-Wunused-function]
     static bool drm_fb_helper_force_kernel_mode(void)
 ^

Move drm_fb_helper_force_kernel_mode() inside the existing #ifdef to fix
this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_helper.c