diff mbox series

[v2,nf-next] netfilter: added includes to nf_socket.h

Message ID 20180523142635.of3r6nlbvgyx46kz@ecklm-lapos.localdomain
State Accepted
Delegated to: Pablo Neira
Headers show
Series [v2,nf-next] netfilter: added includes to nf_socket.h | expand

Commit Message

Máté Eckl May 23, 2018, 2:26 p.m. UTC
These have to be included always when nf_socket.h is included.

Signed-off-by: Máté Eckl <ecklm94@gmail.com>
---
 include/net/netfilter/nf_socket.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

Máté Eckl May 28, 2018, 7:03 a.m. UTC | #1
Is it okay now Pablo? You were right, those forward declarations became
unnecessary.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso May 28, 2018, 10:24 p.m. UTC | #2
On Mon, May 28, 2018 at 09:03:47AM +0200, Máté Eckl wrote:
> Is it okay now Pablo? You were right, those forward declarations became
> unnecessary.

It's fine.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/include/net/netfilter/nf_socket.h b/include/net/netfilter/nf_socket.h
index 8230fefff9f5..29b6313f0557 100644
--- a/include/net/netfilter/nf_socket.h
+++ b/include/net/netfilter/nf_socket.h
@@ -2,10 +2,8 @@ 
 #ifndef _NF_SOCK_H_
 #define _NF_SOCK_H_
 
-struct net_device;
-struct sk_buff;
-struct sock;
-struct net;
+#include <net/sock.h>
+#include <net/inet_timewait_sock.h>
 
 static inline bool nf_sk_is_transparent(struct sock *sk)
 {