]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ipv6: silence compilation warning for non-IPV6 builds
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 3 Feb 2021 13:51:09 +0000 (15:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:57 +0000 (18:22 +0100)
commit564885afa52041de3ac7a847dc71dbfed41cfebe
tree10cccb51567b5f2876f87d72b303d0767c59e2a2
parent8b779e11bc55616fc100d5cecf3c1d3c317c39e4
ipv6: silence compilation warning for non-IPV6 builds

commit 1faba27f11c8da244e793546a1b35a9b1da8208e upstream.

The W=1 compilation of allmodconfig generates the following warning:

net/ipv6/icmp.c:448:6: warning: no previous prototype for 'icmp6_send' [-Wmissing-prototypes]
  448 | void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
      |      ^~~~~~~~~~

Fix it by providing function declaration for builds with ipv6 as a module.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/icmpv6.h