[igt-dev] [PATCH i-g-t 1/3] lib/intel_allocator: Fix alignment variable used in debug path

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Jan 12 12:17:44 UTC 2023


On 2023-01-11 at 19:12:03 +0100, Zbigniew Kempczyński wrote:
> During work on allocator I've missed alignment was replaced by
> default_alignment what makes a compilation error when debug path
> is enabled.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> ---
>  lib/intel_allocator.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/intel_allocator.c b/lib/intel_allocator.c
> index 060a65ce18..2b08dd5996 100644
> --- a/lib/intel_allocator.c
> +++ b/lib/intel_allocator.c
> @@ -351,7 +351,7 @@ static struct allocator *allocator_open(int fd, uint32_t ctx, uint32_t vm,
>  			   "default alignment: 0x%llx "
>  			   "not found, creating one\n",
>  			   fd, ctx, vm, (long long) start, (long long) end,
> -			   (long long) alignment);
> +			   (long long) default_alignment);
>  		ial = intel_allocator_create(fd, start, end, allocator_type,
>  					     allocator_strategy,
>  					     default_alignment);
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list