]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: ndisc: adjust ndisc_ifinfo_sysctl_change prototype
authorTobias Klauser <tklauser@distanz.ch>
Mon, 24 Aug 2020 11:46:22 +0000 (13:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2020 13:40:07 +0000 (06:40 -0700)
commitff7fc36e208bb3dce718611dc767dc52829c7fa7
tree9a730c3b4bcf236eeb56dcc51f84a9d72e38b6bf
parent9969b38953e5215980de5eb49b6832f15b16d7ac
ipv6: ndisc: adjust ndisc_ifinfo_sysctl_change prototype

Commit ecad013df758 ("sysctl: pass kernel pointers to ->proc_handler")
changed ndisc_ifinfo_sysctl_change to take a kernel pointer. Adjust its
prototype in net/ndisc.h as well to fix the following sparse warning:

net/ipv6/ndisc.c:1838:5: error: symbol 'ndisc_ifinfo_sysctl_change' redeclared with different type (incompatible argument 3 (different address spaces)):
net/ipv6/ndisc.c:1838:5:    int extern [addressable] [signed] [toplevel] ndisc_ifinfo_sysctl_change( ... )
net/ipv6/ndisc.c: note: in included file (through include/net/ipv6.h):
./include/net/ndisc.h:496:5: note: previously declared as:
./include/net/ndisc.h:496:5:    int extern [addressable] [signed] [toplevel] ndisc_ifinfo_sysctl_change( ... )
net/ipv6/ndisc.c: note: in included file (through include/net/ip6_route.h):

Fixes: ecad013df758 ("sysctl: pass kernel pointers to ->proc_handler")
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ndisc.h