On Tue, 28 Oct 2025 10:30:01 -0700 Jakub Kicinski wrote:
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-a...)
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.
I guess we could avoid this problem by naming the union. Let's do that instead..