* [PATCH] flow_offload: Move rhashtable inclusion to the source file
@ 2020-07-24 0:50 Herbert Xu
2020-07-24 22:17 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Herbert Xu @ 2020-07-24 0:50 UTC (permalink / raw)
To: wenxu, Jakub Kicinski, David S. Miller, netdev
I noticed that touching linux/rhashtable.h causes lib/vsprintf.c to
be rebuilt. This dependency came through a bogus inclusion in the
file net/flow_offload.h. This patch moves it to the right place.
This patch also removes a lingering rhashtable inclusion in cls_api
created by the same commit.
Fixes: 4e481908c51b ("flow_offload: move tc indirect block to...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h
index f2c8311a0433..1075369d21d3 100644
--- a/include/net/flow_offload.h
+++ b/include/net/flow_offload.h
@@ -5,7 +5,6 @@
#include <linux/list.h>
#include <linux/netlink.h>
#include <net/flow_dissector.h>
-#include <linux/rhashtable.h>
struct flow_match {
struct flow_dissector *dissector;
diff --git a/net/core/flow_offload.c b/net/core/flow_offload.c
index 0cfc35e6be28..e88320c17665 100644
--- a/net/core/flow_offload.c
+++ b/net/core/flow_offload.c
@@ -4,6 +4,7 @@
#include <net/flow_offload.h>
#include <linux/rtnetlink.h>
#include <linux/mutex.h>
+#include <linux/rhashtable.h>
struct flow_rule *flow_rule_alloc(unsigned int num_actions)
{
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index a00a203b2ef5..caa254ece49f 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -20,7 +20,6 @@
#include <linux/kmod.h>
#include <linux/slab.h>
#include <linux/idr.h>
-#include <linux/rhashtable.h>
#include <linux/jhash.h>
#include <linux/rculist.h>
#include <net/net_namespace.h>
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] flow_offload: Move rhashtable inclusion to the source file
2020-07-24 0:50 [PATCH] flow_offload: Move rhashtable inclusion to the source file Herbert Xu
@ 2020-07-24 22:17 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-07-24 22:17 UTC (permalink / raw)
To: herbert; +Cc: wenxu, jakub.kicinski, netdev
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Fri, 24 Jul 2020 10:50:22 +1000
> I noticed that touching linux/rhashtable.h causes lib/vsprintf.c to
> be rebuilt. This dependency came through a bogus inclusion in the
> file net/flow_offload.h. This patch moves it to the right place.
>
> This patch also removes a lingering rhashtable inclusion in cls_api
> created by the same commit.
>
> Fixes: 4e481908c51b ("flow_offload: move tc indirect block to...")
> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-24 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24 0:50 [PATCH] flow_offload: Move rhashtable inclusion to the source file Herbert Xu
2020-07-24 22:17 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.