projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f8a42f
)
ipv6: silence compilation warning for non-IPV6 builds
author
Leon Romanovsky
<leonro@nvidia.com>
Wed, 3 Feb 2021 13:51:09 +0000
(15:51 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 5 Feb 2021 02:37:56 +0000
(18:37 -0800)
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>
include/linux/icmpv6.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/icmpv6.h
b/include/linux/icmpv6.h
index 1b3371ae819362466c88fad6fe4ee7c9907390c7..452d8978ffc7a2ddcb5bd88beeef1fab5080a857 100644
(file)
--- a/
include/linux/icmpv6.h
+++ b/
include/linux/icmpv6.h
@@
-16,9
+16,9
@@
static inline struct icmp6hdr *icmp6_hdr(const struct sk_buff *skb)
typedef void ip6_icmp_send_t(struct sk_buff *skb, u8 type, u8 code, __u32 info,
const struct in6_addr *force_saddr);
-#if IS_BUILTIN(CONFIG_IPV6)
void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
const struct in6_addr *force_saddr);
+#if IS_BUILTIN(CONFIG_IPV6)
static inline void icmpv6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info)
{
icmp6_send(skb, type, code, info, NULL);