Skip to content

Commit 1faba27

Browse files
rleonkuba-moo
authored andcommitted
ipv6: silence compilation warning for non-IPV6 builds
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>
1 parent 8f8a42f commit 1faba27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/icmpv6.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ static inline struct icmp6hdr *icmp6_hdr(const struct sk_buff *skb)
1616

1717
typedef void ip6_icmp_send_t(struct sk_buff *skb, u8 type, u8 code, __u32 info,
1818
const struct in6_addr *force_saddr);
19-
#if IS_BUILTIN(CONFIG_IPV6)
2019
void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
2120
const struct in6_addr *force_saddr);
21+
#if IS_BUILTIN(CONFIG_IPV6)
2222
static inline void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
2323
{
2424
icmp6_send(skb, type, code, info, NULL);

0 commit comments

Comments
 (0)