drm/radeon: fix sparse warning: Should it be static?
authorDmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Tue, 2 Jan 2018 08:02:51 +0000 (10:02 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jan 2018 20:23:30 +0000 (15:23 -0500)
Impact: make symbol static.

Fix this sparse warning:
  drivers/gpu/drm/radeon/radeon_dp_mst.c:332:38: warning: symbol 'mst_cbs' was not declared. Should it be static?

Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_dp_mst.c

index 183b4b4..238e6eb 100644 (file)
@@ -328,7 +328,7 @@ static void radeon_dp_mst_hotplug(struct drm_dp_mst_topology_mgr *mgr)
        drm_kms_helper_hotplug_event(dev);
 }
 
-const struct drm_dp_mst_topology_cbs mst_cbs = {
+static const struct drm_dp_mst_topology_cbs mst_cbs = {
        .add_connector = radeon_dp_add_mst_connector,
        .register_connector = radeon_dp_register_mst_connector,
        .destroy_connector = radeon_dp_destroy_mst_connector,