[Mesa-dev] [PATCH] intel/isl: Declare private array as static const

Kenneth Graunke kenneth at whitecape.org
Thu Nov 30 09:27:46 UTC 2017


On Wednesday, November 29, 2017 11:10:48 AM PST 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",
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171130/c34b5987/attachment.sig>


More information about the mesa-dev mailing list