diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-10-25 18:53:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-29 21:52:18 +0300 |
commit | f8da977989c5d5d2f38e025d4ac1e18243723dbb (patch) | |
tree | 1deba0cfe28eaf741c7448899ee6e8a7e61cf7c6 /net | |
parent | 0f16bc1355bab719958577b2e519a8cef1637b28 (diff) | |
download | linux-f8da977989c5d5d2f38e025d4ac1e18243723dbb.tar.xz |
net: ip, diag: include net/inet_sock.h
The newly added raw_diag.c fails to build in some configurations
unless we include this header:
In file included from net/ipv4/raw_diag.c:6:0:
include/net/raw.h:71:21: error: field 'inet' has incomplete type
net/ipv4/raw_diag.c: In function 'raw_diag_dump':
net/ipv4/raw_diag.c:166:29: error: implicit declaration of function 'inet_sk'
Fixes: 432490f9d455 ("net: ip, diag -- Add diag interface for raw sockets")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/raw_diag.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/raw_diag.c b/net/ipv4/raw_diag.c index ef3bea061b75..be930908bcf9 100644 --- a/net/ipv4/raw_diag.c +++ b/net/ipv4/raw_diag.c @@ -3,6 +3,7 @@ #include <linux/inet_diag.h> #include <linux/sock_diag.h> +#include <net/inet_sock.h> #include <net/raw.h> #include <net/rawv6.h> |