diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2016-06-09 13:05:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-11 02:22:55 -0400 |
commit | c3ec5e5ce9cea1f369a5a8ad69d6471680796bc6 (patch) | |
tree | 6d68af686a5d0a82410ee1d64cb37f338e58f41d | |
parent | 56fae404fb2c306db0a35dad0d16fa24c65678f3 (diff) |
net: diag: add missing declarations
The functions inet_diag_msg_common_fill and inet_diag_msg_attrs_fill
seem to have been missed from the include/linux/inet_diag.h header
file. Add them to fix the following warnings:
net/ipv4/inet_diag.c:69:6: warning: symbol 'inet_diag_msg_common_fill' was not declared. Should it be static?
net/ipv4/inet_diag.c:108:5: warning: symbol 'inet_diag_msg_attrs_fill' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/linux/inet_diag.h | 6 | ||||
-rw-r--r-- | net/sctp/sctp_diag.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index 7c27fa1030e8..feb04ea20f11 100644 --- a/include/linux/inet_diag.h +++ b/include/linux/inet_diag.h | |||
@@ -52,6 +52,12 @@ struct sock *inet_diag_find_one_icsk(struct net *net, | |||
52 | 52 | ||
53 | int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); | 53 | int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); |
54 | 54 | ||
55 | void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk); | ||
56 | |||
57 | int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb, | ||
58 | struct inet_diag_msg *r, int ext, | ||
59 | struct user_namespace *user_ns); | ||
60 | |||
55 | extern int inet_diag_register(const struct inet_diag_handler *handler); | 61 | extern int inet_diag_register(const struct inet_diag_handler *handler); |
56 | extern void inet_diag_unregister(const struct inet_diag_handler *handler); | 62 | extern void inet_diag_unregister(const struct inet_diag_handler *handler); |
57 | #endif /* _INET_DIAG_H_ */ | 63 | #endif /* _INET_DIAG_H_ */ |
diff --git a/net/sctp/sctp_diag.c b/net/sctp/sctp_diag.c index 1ce724b87618..f69edcf219e5 100644 --- a/net/sctp/sctp_diag.c +++ b/net/sctp/sctp_diag.c | |||
@@ -3,12 +3,6 @@ | |||
3 | #include <linux/sock_diag.h> | 3 | #include <linux/sock_diag.h> |
4 | #include <net/sctp/sctp.h> | 4 | #include <net/sctp/sctp.h> |
5 | 5 | ||
6 | extern void inet_diag_msg_common_fill(struct inet_diag_msg *r, | ||
7 | struct sock *sk); | ||
8 | extern int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb, | ||
9 | struct inet_diag_msg *r, int ext, | ||
10 | struct user_namespace *user_ns); | ||
11 | |||
12 | static void sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, | 6 | static void sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, |
13 | void *info); | 7 | void *info); |
14 | 8 | ||