]> git.baikalelectronics.ru Git - kernel.git/commitdiff
flow_offload: Move rhashtable inclusion to the source file
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jul 2020 00:50:22 +0000 (10:50 +1000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jul 2020 22:17:22 +0000 (15:17 -0700)
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: 821308153835 ("flow_offload: move tc indirect block to...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h
net/core/flow_offload.c
net/sched/cls_api.c

index 6315324b9dc2c4d7cd4c979fe08208a547811ca6..3eaf25f68b7957072209692487d818747331a176 100644 (file)
@@ -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;
index b739cfab796e49aec8f3d9d21fce96cc0d58620b..2076219b8ba582ad9533075b10be830d5ff1758e 100644 (file)
@@ -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)
 {
index e62beec0d844055d955d848ac604fa19ab50fe3d..4619cb3cb0a8f51f04e008bb1cbdd25934bc0c06 100644 (file)
@@ -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>