[PATCH v2 2/3] net/sfc: fix non-constant expression inr RTE_BUILD_BUG_ON()
Morten Brørup
mb at smartsharesystems.com
Tue Nov 14 06:50:38 CET 2023
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Tuesday, 14 November 2023 01.22
>
> On Mon, 13 Nov 2023 16:16:35 -0800
> Stephen Hemminger <stephen at networkplumber.org> wrote:
>
> > _Static_assert(!(0 != 0), "RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN != 0");
>
> Looks like a clang bug, or something about the other compiler flags
> because compiling just this part is fine.
Ideas:
Perhaps this file is not compiled as C11, so _Static_assert is not recognized. Does that part compile in the same file?
Or perhaps the C version or some compiler flags are modified (by a #pragma or similar) in the file.
More information about the dev
mailing list