[Mesa-dev] [PATCH 6/9] i915: Silence unused parameter warnings

Anuj Phogat anuj.phogat at gmail.com
Thu Sep 10 11:57:56 PDT 2015


On Wed, Sep 9, 2015 at 7:18 PM, Ian Romanick <idr at freedesktop.org> wrote:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> intel_mipmap_tree.c: In function 'old_intel_miptree_unmap_raw':
> intel_mipmap_tree.c:726:51: warning: unused parameter 'intel'
> [-Wunused-parameter]
>  intel_miptree_unmap_raw(struct intel_context *intel,
>                                                    ^
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>  src/mesa/drivers/dri/i915/intel_mipmap_tree.c  | 7 +++----
>  src/mesa/drivers/dri/i915/intel_mipmap_tree.h  | 3 +--
>  src/mesa/drivers/dri/i915/intel_tex_subimage.c | 2 +-
>  3 files changed, 5 insertions(+), 7 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c
> b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c
> index 1aa06c1..0fcc2b1 100644
> --- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.c
> @@ -723,8 +723,7 @@ intel_miptree_map_raw(struct intel_context *intel,
> struct intel_mipmap_tree *mt)
>  }
>
>  void
> -intel_miptree_unmap_raw(struct intel_context *intel,
> -                        struct intel_mipmap_tree *mt)
> +intel_miptree_unmap_raw(struct intel_mipmap_tree *mt)
>  {
>     drm_intel_bo_unmap(mt->region->bo);
>  }
> @@ -778,7 +777,7 @@ intel_miptree_unmap_gtt(struct intel_context *intel,
>                         unsigned int level,
>                         unsigned int slice)
>  {
> -   intel_miptree_unmap_raw(intel, mt);
> +   intel_miptree_unmap_raw(mt);
>  }
>
>  static void
> @@ -833,7 +832,7 @@ intel_miptree_unmap_blit(struct intel_context *intel,
>  {
>     struct gl_context *ctx = &intel->ctx;
>
> -   intel_miptree_unmap_raw(intel, map->mt);
> +   intel_miptree_unmap_raw(map->mt);
>
>     if (map->mode & GL_MAP_WRITE_BIT) {
>        bool ok = intel_miptree_blit(intel,
> diff --git a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
> b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
> index f6ed717..aab30ed 100644
> --- a/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
> +++ b/src/mesa/drivers/dri/i915/intel_mipmap_tree.h
> @@ -348,8 +348,7 @@ void i945_miptree_layout(struct intel_mipmap_tree *mt);
>  void *intel_miptree_map_raw(struct intel_context *intel,
>                              struct intel_mipmap_tree *mt);
>
> -void intel_miptree_unmap_raw(struct intel_context *intel,
> -                             struct intel_mipmap_tree *mt);
> +void intel_miptree_unmap_raw(struct intel_mipmap_tree *mt);
>
>  void
>  intel_miptree_map(struct intel_context *intel,
> diff --git a/src/mesa/drivers/dri/i915/intel_tex_subimage.c
> b/src/mesa/drivers/dri/i915/intel_tex_subimage.c
> index f11ef2e..4083d69 100644
> --- a/src/mesa/drivers/dri/i915/intel_tex_subimage.c
> +++ b/src/mesa/drivers/dri/i915/intel_tex_subimage.c
> @@ -102,7 +102,7 @@ intel_blit_texsubimage(struct gl_context * ctx,
>        _mesa_error(ctx, GL_OUT_OF_MEMORY, "intelTexSubImage");
>     }
>
> -   intel_miptree_unmap_raw(intel, temp_mt);
> +   intel_miptree_unmap_raw(temp_mt);
>
>     bool ret;
>
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150910/f4dfd41f/attachment-0001.html>


More information about the mesa-dev mailing list