]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: Constify static struct genl_small_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 4 Oct 2020 23:44:17 +0000 (01:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2020 04:13:36 +0000 (21:13 -0700)
commitaf8fc772070ee9e861d8a579eab02ec71daff290
treea0df8543af846d2289f60e135fad2509602a555e
parent80f094866e346851fff4b95c14faf42335905ca5
net: openvswitch: Constify static struct genl_small_ops

The only usage of these is to assign their address to the small_ops field
in the genl_family struct, which is a const pointer, and applying
ARRAY_SIZE() on them. Make them const to allow the compiler to put them
in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c
net/openvswitch/meter.c