[igt-dev] [PATCH i-g-t 1/4] lib/intel_allocator: Fix argument names in declarations

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Jul 21 09:19:50 UTC 2021


On Tue, Jul 20, 2021 at 04:12:29PM +0200, Andrzej Turko wrote:
> Unify the argument names to avoid confusion.
> 
> Signed-off-by: Andrzej Turko <andrzej.turko at linux.intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

Right, prototype mismatch implementation. Thanks for fix.

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew

> ---
>  lib/intel_allocator.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/lib/intel_allocator.h b/lib/intel_allocator.h
> index c14f57b4d..7d9d01123 100644
> --- a/lib/intel_allocator.h
> +++ b/lib/intel_allocator.h
> @@ -144,13 +144,13 @@ struct intel_allocator {
>  			  uint64_t size, uint64_t alignment,
>  			  enum allocator_strategy strategy);
>  	bool (*is_allocated)(struct intel_allocator *ial, uint32_t handle,
> -			     uint64_t size, uint64_t alignment);
> +			     uint64_t size, uint64_t offset);
>  	bool (*reserve)(struct intel_allocator *ial,
> -			uint32_t handle, uint64_t start, uint64_t size);
> +			uint32_t handle, uint64_t start, uint64_t end);
>  	bool (*unreserve)(struct intel_allocator *ial,
> -			  uint32_t handle, uint64_t start, uint64_t size);
> +			  uint32_t handle, uint64_t start, uint64_t end);
>  	bool (*is_reserved)(struct intel_allocator *ial,
> -			    uint64_t start, uint64_t size);
> +			    uint64_t start, uint64_t end);
>  	bool (*free)(struct intel_allocator *ial, uint32_t handle);
>  
>  	void (*destroy)(struct intel_allocator *ial);
> -- 
> 2.25.1
> 


More information about the igt-dev mailing list