The 'cards' and 'numcards' variables are initialized only during the init phase in the 'com90xx_found' function and never changed. So, mark these as __ro_after_init. Signed-off-by: Len Bao --- drivers/net/arcnet/com90xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/arcnet/com90xx.c b/drivers/net/arcnet/com90xx.c index b3b287c16..bdcdccbfb 100644 --- a/drivers/net/arcnet/com90xx.c +++ b/drivers/net/arcnet/com90xx.c @@ -67,8 +67,8 @@ static void com90xx_copy_from_card(struct net_device *dev, int bufnum, /* Known ARCnet cards */ -static struct net_device *cards[16]; -static int numcards; +static struct net_device *cards[16] __ro_after_init; +static int numcards __ro_after_init; /* Handy defines for ARCnet specific stuff */ -- 2.43.0