intel/isl: Declare private array as static const
authorChad Versace <chadversary@chromium.org>
Wed, 29 Nov 2017 18:56:26 +0000 (10:56 -0800)
committerChad Versace <chadversary@chromium.org>
Mon, 4 Dec 2017 18:16:33 +0000 (10:16 -0800)
It's array isl_drm.c:modifier_info[] .

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/isl/isl_drm.c

index eb3c6f59138c1dcd5d92d0c7a0229e285703ce19..31895e15e16faf53589d9883a215a843a44d6348 100644 (file)
@@ -71,7 +71,7 @@ isl_tiling_from_i915_tiling(uint32_t tiling)
    unreachable("Invalid i915 tiling");
 }
 
-struct isl_drm_modifier_info modifier_info[] = {
+static const struct isl_drm_modifier_info modifier_info[] = {
    {
       .modifier = DRM_FORMAT_MOD_NONE,
       .name = "DRM_FORMAT_MOD_NONE",