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 <beilei.x...@intel.com> Sent: Thursday, August 24, 2023 5:20 PM To: Qiao, Wenjing <wenjing.q...@intel.com>; Zhang, Yuying <yuying.zh...@intel.com> Cc: dev@dpdk.org; Liu, Mingxia <mingxia....@intel.com> Subject: RE: [PATCH 3/4] net/cpfl: introduce CPF common library > -----Original Message----- > From: Qiao, Wenjing <wenjing.q...@intel.com> > Sent: Friday, August 11, 2023 5:31 PM > To: Zhang, Yuying <yuying.zh...@intel.com>; Xing, Beilei > <beilei.x...@intel.com> > Cc: dev@dpdk.org; Liu, Mingxia <mingxia....@intel.com>; Qiao, Wenjing > <wenjing.q...@intel.com> > 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 <wenjing.q...@intel.com> > --- > +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) {