Messages in this thread | | | Date | Mon, 28 Sep 2020 16:04:01 -0700 (PDT) | Subject | Re: [PATCH] atm: atmtcp: Constify atmtcp_v_dev_ops | From | David Miller <> |
| |
From: Rikard Falkeborn <rikard.falkeborn@gmail.com> 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 it in read-only memory. > > Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Applied to net-next
| |