[PATCH] net/bnxt: fix build with GCC 13
Ajit Khaparde
ajit.khaparde at broadcom.com
Tue Oct 4 06:01:23 CEST 2022
On Mon, Oct 3, 2022 at 9:58 AM David Marchand <david.marchand at redhat.com> wrote:
>
> GCC 13 complains with:
>
> ../../../dpdk/drivers/net/bnxt/tf_ulp/ulp_flow_db.c:962:1:
> error: conflicting types for ‘ulp_flow_db_flush_flows’ due to
> enum/integer mismatch; have ‘int32_t(struct bnxt_ulp_context *,
> enum bnxt_ulp_fdb_type)’ {aka ‘int(struct bnxt_ulp_context *,
> enum bnxt_ulp_fdb_type)’} [-Werror=enum-int-mismatch]
> 962 | ulp_flow_db_flush_flows(struct bnxt_ulp_context *ulp_ctx,
> | ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from
> ../../../dpdk/drivers/net/bnxt/tf_ulp/ulp_flow_db.c:12:
> ../../../dpdk/drivers/net/bnxt/tf_ulp/ulp_flow_db.h:211:1: note:
> previous declaration of ‘ulp_flow_db_flush_flows’ with type
> ‘int32_t(struct bnxt_ulp_context *, uint32_t)’ {aka ‘int(struct
> bnxt_ulp_context *, unsigned int)’}
> 211 | ulp_flow_db_flush_flows(struct bnxt_ulp_context *ulp_ctx,
> | ^~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
>
> Fixes: 30683082a8ed ("net/bnxt: combine default and regular flows")
> Cc: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
Patch applied to dpdk-next-net-brcm.
Thanks
Ajit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4218 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mails.dpdk.org/archives/stable/attachments/20221003/f91d69b4/attachment.bin>
More information about the stable
mailing list