]> git.baikalelectronics.ru Git - kernel.git/commit
net: ip, diag: include net/inet_sock.h
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Oct 2016 15:53:22 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 18:52:18 +0000 (14:52 -0400)
commitca71e4df4849c9b0694fb60339736ed6472fa8b8
tree1deba0cfe28eaf741c7448899ee6e8a7e61cf7c6
parentf7fc44576abfcbdbc174eef1894d495a2b6a5e4b
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: e5cb755ff04f ("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>
net/ipv4/raw_diag.c