Re: [PATCH] atm: atmtcp: Constify atmtcp_v_dev_ops

2020-09-28 Thread David Miller
From: Rikard Falkeborn Date: Sun, 27 Sep 2020 23:10:42 +0200 > The only usage of atmtcp_v_dev_ops is to pass its address to > atm_dev_register() which takes a pointer to const, and comparing its > address to another address, which does not modify it. Make it const to > allow the compiler to put

[PATCH] atm: atmtcp: Constify atmtcp_v_dev_ops

2020-09-27 Thread Rikard Falkeborn
The only usage of atmtcp_v_dev_ops is to pass its address to atm_dev_register() which takes a pointer to const, and comparing its address to another address, which does not modify it. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn ---