pfkey: fix warning
Subsystems (3)
PATCH 1/1 pfkey: fix warning
If CONFIG_NET_KEY_MIGRATE is not defined the arguments of pfkey_migrate stub do not match causing warning.
Signed-off-by Stephen Hemminger <[email protected]>
net/key/af_key.c +1 -1
@@ -2560,7 +2560,7 @@ static int pfkey_migrate(struct sock *sk }#else static int pfkey_migrate (struct sock *sk,struct sk_buff *skb, -struct sadb_msg *hdr,void **ext_hdrs) +const struct sadb_msg *hdr,void *const *ext_hdrs) {return -ENOPROTOOPT ; }
From: Stephen Hemminger <[email protected]>
Date: Tue, 1 Mar 2011 22:39:13 -0800
Quoted 4 lines
If
CONFIG_NET_KEY_MIGRATEis not defined the arguments ofpfkey_migratestub do not match causing warning.Signed-off-by Stephen Hemminger <[email protected]>
Applied, thanks!