net : make netlink_seq_ops const
Subsystems (2)
PATCH 1/1 net : make netlink_seq_ops const
Hi all,
Make netlink_seq_ops const
Signed-off-by Philippe De Muyter <[email protected]>
net/netlink/af_netlink.c +1 -1
@@ -1713,7 +1713,7 @@ static int netlink_seq_show(struct seq_freturn 0 ; } -static struct seq_operations netlink_seq_ops = { +static const struct seq_operations netlink_seq_ops = { .start = netlink_seq_start, .next = netlink_seq_next, .stop = netlink_seq_stop,
[please send networking patches to netdev]
Quoted 3 lines · Philippe De Muyter
Hi all,
Make
netlink_seq_opsconst
Might make more sense to do a big patch for all occurences of this in net/:
# grep "^static struct seq_operations" -r net/ | wc -l 76
Quoted 5 lines · Patrick McHardy
[please send networking patches to netdev]
Quoted 2 lines · Philippe De Muyter
Hi all,
Quoted 8 lines
Quoted 1 line
Make
netlink_seq_opsconstMight make more sense to do a big patch for all occurences of this in
net/:# grep "^static struct seq_operations" -r net/ | wc -l 76
OK
Philippe