Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0eb71a9d authored by NeilBrown's avatar NeilBrown Committed by David S. Miller
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarNeilBrown <neilb@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cbab9012
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -12162,7 +12162,9 @@ M: Herbert Xu <herbert@gondor.apana.org.au>
L:	netdev@vger.kernel.org
S:	Maintained
F:	lib/rhashtable.c
F:	lib/test_rhashtable.c
F:	include/linux/rhashtable.h
F:	include/linux/rhashtable-types.h

RICOH R5C592 MEMORYSTICK DRIVER
M:	Maxim Levitsky <maximlevitsky@gmail.com>
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@
#include <linux/spinlock.h>
#include <linux/timer.h>
#include <linux/vmalloc.h>
#include <linux/rhashtable.h>
#include <linux/etherdevice.h>
#include <linux/net_tstamp.h>
#include <linux/ptp_clock_kernel.h>
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

#include <linux/spinlock.h>
#include <linux/uidgid.h>
#include <linux/rhashtable.h>
#include <linux/rhashtable-types.h>
#include <uapi/linux/ipc.h>
#include <linux/refcount.h>

+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
#include <linux/nsproxy.h>
#include <linux/ns_common.h>
#include <linux/refcount.h>
#include <linux/rhashtable.h>
#include <linux/rhashtable-types.h>

struct user_namespace;

+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
#define __LINUX_MROUTE_BASE_H

#include <linux/netdevice.h>
#include <linux/rhashtable.h>
#include <linux/rhashtable-types.h>
#include <linux/spinlock.h>
#include <net/net_namespace.h>
#include <net/sock.h>
Loading