Subject: Re: [PATCH net-next v2 3/5] psp: add stats from psp spec to driver facing api

From: Jakub Kicinski <[email-masked]>
Date: Tue, 28 Oct 2025 10:30:01 -0700

On Tue, 28 Oct 2025 10:02:16 +0100 Paolo Abeni wrote:
> This makes static checker unhappy:
> 
> /home/cocci/testing/include/net/psp/types.h:167:6-18: WARNING use
> flexible-array member instead
> (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)
> 
> I think/guess the warning could be avoided using something alike the
> following (completely untested!!!):

It's not a VLA, it's an end marker for calculating offsets.
The patch is fine, we should have added in the commit msg that the
false positive from cocci is expected.