Message ID | 20110301223913.2caf53c3@nehalam |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show |
From: Stephen Hemminger <shemminger@vyatta.com> Date: Tue, 1 Mar 2011 22:39:13 -0800 > If CONFIG_NET_KEY_MIGRATE is not defined the arguments of > pfkey_migrate stub do not match causing warning. > > Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- a/net/key/af_key.c 2011-03-01 22:32:30.608511083 -0800 +++ b/net/key/af_key.c 2011-03-01 22:33:55.703791987 -0800 @@ -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; }
If CONFIG_NET_KEY_MIGRATE is not defined the arguments of pfkey_migrate stub do not match causing warning. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html