[Mesa-dev] [PATCH] intel/isl: Declare private array as static const
Tapani Pälli
tapani.palli at intel.com
Thu Nov 30 07:07:50 UTC 2017
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 11/29/2017 09:10 PM, Chad Versace wrote:
> It's array isl_drm.c:modifier_info[] .
> ---
> src/intel/isl/isl_drm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/intel/isl/isl_drm.c b/src/intel/isl/isl_drm.c
> index eb3c6f59138..31895e15e16 100644
> --- a/src/intel/isl/isl_drm.c
> +++ b/src/intel/isl/isl_drm.c
> @@ -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",
>
More information about the mesa-dev
mailing list