drm/virtio: Fix non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 19 Jul 2016 12:45:56 +0000 (12:45 +0000)
committerSean Paul <seanpaul@chromium.org>
Tue, 19 Jul 2016 19:44:10 +0000 (15:44 -0400)
Fixes the following sparse warning:

drivers/gpu/drm/virtio/virtgpu_display.c:349:37: warning:
  symbol 'virtio_mode_config_helpers' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/virtio/virtgpu_display.c

index fdfc711c9a4d47eb25795b50fee6c58ffde1e354..4e192aa2d0216fe15d9f7746e3092886b55e031d 100644 (file)
@@ -346,7 +346,7 @@ static void vgdev_atomic_commit_tail(struct drm_atomic_state *state)
        drm_atomic_helper_cleanup_planes(dev, state);
 }
 
-struct drm_mode_config_helper_funcs virtio_mode_config_helpers = {
+static struct drm_mode_config_helper_funcs virtio_mode_config_helpers = {
        .atomic_commit_tail = vgdev_atomic_commit_tail,
 };