Re: [PATCH v3] net: macb: Add __nonstring annotations for unterminated strings

From: Andrew Lunn
Date: Thu Mar 13 2025 - 09:26:09 EST


> struct gem_statistic {
> - char stat_string[ETH_GSTRING_LEN];
> + char stat_string[ETH_GSTRING_LEN] __nonstring;

This general pattern of a char foo[ETH_GSTRING_LEN]' will appear
throughout drivers/net/ethernet. Maybe Coccinelle can find them all
and add the __nonstring ?

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew