diff options
author | David S. Miller <davem@davemloft.net> | 2020-10-04 21:13:36 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-10-04 21:13:36 -0700 |
commit | c2568c8c9e636a56abf31da4b28b65d3ded02524 (patch) | |
tree | a0df8543af846d2289f60e135fad2509602a555e /net/openvswitch/meter.c | |
parent | f5083d0cee08a4b87d5d7a5c57f60ec128bff997 (diff) | |
parent | b980b313e5a2ace214322af9f3183c269b5c55ae (diff) |
Merge branch 'net-Constify-struct-genl_small_ops'
Rikard Falkeborn says:
====================
net: Constify struct genl_small_ops
Make a couple of static struct genl_small_ops const to allow the compiler
to put them in read-only memory. Patches are independent.
v2: Rebase on net-next, genl_ops -> genl_small_ops
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch/meter.c')
-rw-r--r-- | net/openvswitch/meter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/meter.c b/net/openvswitch/meter.c index 50541e874726..8fbefd52af7f 100644 --- a/net/openvswitch/meter.c +++ b/net/openvswitch/meter.c @@ -672,7 +672,7 @@ bool ovs_meter_execute(struct datapath *dp, struct sk_buff *skb, return false; } -static struct genl_small_ops dp_meter_genl_ops[] = { +static const struct genl_small_ops dp_meter_genl_ops[] = { { .cmd = OVS_METER_CMD_FEATURES, .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP, .flags = 0, /* OK for unprivileged users. */ |