Re: [PATCH net] net: mctp: usblib: Fix broken assertion
From: Geert Uytterhoeven
Date: Mon Oct 26 2026 - 04:37:50 EST
On Mon, 26 Oct 2026 at 04:33, James Lee <james@xxxxxxxxxxxxxxxxxxxx> wrote:
> The expression in a static assertion in the kunit tests was not
> considered constant by gcc, causing an error. Replace the static assert
> with a runtime kunit equivalent.
>
> Fixes: 1e12f734afc1 ("net: mctp: usblib: Add initial kunit tx tests")
> Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/netdev/CAMuHMdXTGGdGWZ9sKz5_sQF1237gV844cEhkXr6v_TUHPOb78Q@xxxxxxxxxxxxxx/
> Signed-off-by: James Lee <james@xxxxxxxxxxxxxxxxxxxx>
Thanks, this fixes the build for me.
Tested-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds