Although it appears that 'hw' is being used, it is not actually being used. 
Look at the following macros which use 'hw':
#define idpf_calloc(h, c, s)    rte_zmalloc(NULL, (c) * (s), 0)
#define idpf_free(h, m)         rte_free(m)

If I remove '__rte_unused', it will show -Wunused-parameter warning when 
compiling.

-----Original Message-----
From: Xing, Beilei <[email protected]> 
Sent: Thursday, August 24, 2023 5:20 PM
To: Qiao, Wenjing <[email protected]>; Zhang, Yuying 
<[email protected]>
Cc: [email protected]; Liu, Mingxia <[email protected]>
Subject: RE: [PATCH 3/4] net/cpfl: introduce CPF common library



> -----Original Message-----
> From: Qiao, Wenjing <[email protected]>
> Sent: Friday, August 11, 2023 5:31 PM
> To: Zhang, Yuying <[email protected]>; Xing, Beilei 
> <[email protected]>
> Cc: [email protected]; Liu, Mingxia <[email protected]>; Qiao, Wenjing 
> <[email protected]>
> Subject: [PATCH 3/4] net/cpfl: introduce CPF common library
> 
> Add common library support for CPFL rte_flow to create/delete rules.
> 
> Signed-off-by: Wenjing Qiao <[email protected]>
> ---


> +int
> +cpfl_ctlq_alloc_ring_res(struct idpf_hw *hw __rte_unused, struct

hw is used, so remove __rte_unused.
Please check other functions.

> idpf_ctlq_info *cq,
> +                      struct cpfl_ctlq_create_info *qinfo) {

Reply via email to