[Devel] [PATCH rh7 2/3] net: ip, diag: include net/inet_sock.h

Cyrill Gorcunov gorcunov at virtuozzo.com
Mon Nov 14 14:18:46 PST 2016


From: Arnd Bergmann <arnd at arndb.de>

net-next: f8da977989c5d5d2f38e025d4ac1e18243723dbb

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 at arndb.de>
Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
 net/ipv4/raw_diag.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-pcs7.git/net/ipv4/raw_diag.c
===================================================================
--- linux-pcs7.git.orig/net/ipv4/raw_diag.c
+++ linux-pcs7.git/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>
 


More information about the Devel mailing list