[dpdk-dev] [PATCH v4 05/34] net/bnxt: add initial tf core session close support

Ferruh Yigit ferruh.yigit at intel.com
Thu Apr 16 19:39:34 CEST 2020


On 4/15/2020 9:18 AM, Venkat Duvvuru wrote:
> From: Michael Wildt <michael.wildt at broadcom.com>
> 
> - Add TruFlow session and resource support functions
> - Add Truflow session close API and related message support functions
>   for both session and hw resources
> 
> Signed-off-by: Michael Wildt <michael.wildt at broadcom.com>
> Reviewed-by: Randy Schacher <stuart.schacher at broadcom.com>
> Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde at broadcom.com>

<...>

> +static inline uint32_t SWAP_WORDS32(uint32_t val32)
> +{
> +	return (((val32 & 0x0000ffff) << 16) |
> +		((val32 & 0xffff0000) >> 16));
> +}
> +

'SWAP_WORDS32()' is not used in this patch and causing a build warning [1], can
you please add this function on the patch it is used?

[1]
.../drivers/net/bnxt/tf_core/tf_core.c:17:24: error: unused function
'SWAP_WORDS32' [-Werror,-Wunused-function]
static inline uint32_t SWAP_WORDS32(uint32_t val32)
                       ^


More information about the dev mailing list