[Mesa-dev] [PATCH] freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabled

Rob Clark robdclark at gmail.com
Fri Dec 18 11:02:41 PST 2015


On Thu, Dec 17, 2015 at 10:42 AM, Rob Herring <robh at kernel.org> wrote:
> Android builds with -Werror=pointer-to-int-cast causing an error on 32-bit
> builds.
>
> Signed-off-by: Rob Herring <robh at kernel.org>

thanks, pushed.. and added CC-stable tag for good measure

BR,
-R

> ---
>  src/gallium/drivers/freedreno/ir3/ir3_print.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/freedreno/ir3/ir3_print.c b/src/gallium/drivers/freedreno/ir3/ir3_print.c
> index 07e03d2..a84e798 100644
> --- a/src/gallium/drivers/freedreno/ir3/ir3_print.c
> +++ b/src/gallium/drivers/freedreno/ir3/ir3_print.c
> @@ -143,7 +143,7 @@ block_id(struct ir3_block *block)
>  #ifdef DEBUG
>         return block->serialno;
>  #else
> -       return (uint32_t)(uint64_t)block;
> +       return (uint32_t)(unsigned long)block;
>  #endif
>  }
>
> --
> 2.5.0
>


More information about the mesa-dev mailing list