Skip to contentSkip to conversation

tcp: make proc_tcp_fastopen_key static

PATCH Applied Stephen Hemminger 2 participants 2 messages Dec 29, 2012

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

PATCH 1/1 tcp: make proc_tcp_fastopen_key static

Detected by sparse.

net/ipv4/sysctl_net_ipv4.c +2 -2
@@ -232,8 +232,8 @@ static int ipv4_tcp_mem(ctl_table *ctl,
 	return 0;
 }
 
-int proc_tcp_fastopen_key(ctl_table *ctl, int write, void __user *buffer,
-			  size_t *lenp, loff_t *ppos)
+static int proc_tcp_fastopen_key(ctl_table *ctl, int write, void __user *buffer,
+				 size_t *lenp, loff_t *ppos)
 {
 	ctl_table tbl = { .maxlen = (TCP_FASTOPEN_KEY_LENGTH * 2 + 10) };
 	struct tcp_fastopen_context *ctxt;