From: Stephen Hemminger Date: Wed, 2 Mar 2011 06:51:52 +0000 (-0800) Subject: pfkey: fix warning X-Git-Tag: v2.6.39-rc1~468^2~184 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7f6daa635c28ed686835a4080269e3fdc5a01012;p=~shefty%2Frdma-dev.git 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 Signed-off-by: David S. Miller --- diff --git a/net/key/af_key.c b/net/key/af_key.c index 7fb54577f5b..7db86ffcf07 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -2560,7 +2560,7 @@ static int pfkey_migrate(struct sock *sk, struct sk_buff *skb, } #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; }