summaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorNeilBrown2018-06-18 04:52:50 +0200
committerDavid S. Miller2018-06-22 06:43:27 +0200
commit0eb71a9da5796851fa87ddc1a534066c0fe54055 (patch)
tree2e6a006f82122ffc983e89f74b5b702ae75799b9 /net/sctp
parentrhashtable: silence RCU warning in rhashtable_test. (diff)
downloadkernel-qcow2-linux-0eb71a9da5796851fa87ddc1a534066c0fe54055.tar.gz
kernel-qcow2-linux-0eb71a9da5796851fa87ddc1a534066c0fe54055.tar.xz
kernel-qcow2-linux-0eb71a9da5796851fa87ddc1a534066c0fe54055.zip
rhashtable: split rhashtable.h
Due to the use of rhashtables in net namespaces, rhashtable.h is included in lots of the kernel, so a small changes can required a large recompilation. This makes development painful. This patch splits out rhashtable-types.h which just includes the major type declarations, and does not include (non-trivial) inline code. rhashtable.h is no longer included by anything in the include/ directory. Common include files only include rhashtable-types.h so a large recompilation is only triggered when that changes. Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/input.c1
-rw-r--r--net/sctp/socket.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index ba8a6e6c36fa..9bbc5f92c941 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -56,6 +56,7 @@
#include <net/sctp/sm.h>
#include <net/sctp/checksum.h>
#include <net/net_namespace.h>
+#include <linux/rhashtable.h>
/* Forward declarations for internal helpers. */
static int sctp_rcv_ootb(struct sk_buff *);
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index d20f7addee19..0e91e83eea5a 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -66,6 +66,7 @@
#include <linux/slab.h>
#include <linux/file.h>
#include <linux/compat.h>
+#include <linux/rhashtable.h>
#include <net/ip.h>
#include <net/icmp.h>