Skip to contentSkip to conversation

net : make netlink_seq_ops const

PATCH In review Philippe De Muyter 2 participants 3 messages Jul 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net : make netlink_seq_ops const

Hi all,

Make netlink_seq_ops const

net/netlink/af_netlink.c +1 -1
diff -r 6c0a10cc415a net/netlink/af_netlink.c
@@ -1713,7 +1713,7 @@ static int netlink_seq_show(struct seq_f
 	return 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,
#1 lore raw

[please send networking patches to netdev]

Quoted 3 lines · Philippe De Muyter

Hi all,

Make netlink_seq_ops const

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
#2 lore raw
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_ops const

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

OK

Philippe