Re: [PATCH] ethtool: Replace 0-length array with flexible array

From: Kees Cook
Date: Thu Jan 05 2023 - 18:34:59 EST


On Thu, Jan 05, 2023 at 03:27:31PM -0800, Jakub Kicinski wrote:
> On Thu, 5 Jan 2023 13:41:34 -0800 Kees Cook wrote:
> > Zero-length arrays are deprecated[1]. Replace struct ethtool_rxnfc's
> > "rule_locs" 0-length array with a flexible array. Detected with GCC 13,
> > using -fstrict-flex-arrays=3:
>
> You gotta CC netdev to get it into patchwork etc.

Oops, thanks. I'm not sure how that went missing. v2 sent.

--
Kees Cook