Skip to contentSkip to conversation

pfkey: fix warning

PATCH Applied Stephen Hemminger 2 participants 2 messages Mar 2, 2011

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

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.

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;
 }