net: ping: fix constness inconsistency in ipv6_chk_addr
authorGreg Hackmann <ghackmann@google.com>
Mon, 16 Mar 2015 22:17:05 +0000 (15:17 -0700)
committerGreg Hackmann <ghackmann@google.com>
Mon, 16 Mar 2015 22:23:53 +0000 (15:23 -0700)
commitad41e067668c77308438ddf9c5ec6909cd11a5f9
treec18c5f6ff4d39f1a81f0b70bc630091bf2f7bde4
parent3f048135f3028e503d9d6e32b602e362bd9f374f
net: ping: fix constness inconsistency in ipv6_chk_addr

The ipv6_chk_addr declarations and implementations aren't consistent
about the dev parameter's constness.  6bc19fb upstream resolved this in
favor of const, so let's do the same here.

This fixes the following warning:

net/ipv6/ping.c: In function 'pingv6_init':
net/ipv6/ping.c:87:27: warning: assignment from incompatible pointer type
  pingv6_ops.ipv6_chk_addr = ipv6_chk_addr;
                           ^

Change-Id: Ibd9efd7d489e661f71ab641c981689bf92258b7c
Signed-off-by: Greg Hackmann <ghackmann@google.com>
include/net/ping.h
net/ipv6/ping.c