diff mbox series

[11/12] net/mlx5: replace <linux/radix-tree.h> with <linux/radix-tree-root.h>

Message ID 1507479013-5207-12-git-send-email-yamada.masahiro@socionext.com
State New
Headers show
Series radix-tree: split out struct radix_tree_root out to <linux/radix-tree-root.h> | expand

Commit Message

Masahiro Yamada Oct. 8, 2017, 4:10 p.m. UTC
The header include/linux/mlx5/driver.h requires the definition of
struct radix_tree_root, but does not need to know anything about
other radix tree stuff.

Include <linux/radix-tree-root.h> instead of <linux/radix-tree.h> to
reduce the number of included header files.

Also, add <linux/radix-tree.h> to include/linux/mlx5/gp.h where radix
tree accessors are used.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 include/linux/mlx5/driver.h | 2 +-
 include/linux/mlx5/qp.h     | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
2.7.4

Comments

David Miller Oct. 8, 2017, 5 p.m. UTC | #1
From: Masahiro Yamada <yamada.masahiro@socionext.com>

Date: Mon,  9 Oct 2017 01:10:12 +0900

> The header include/linux/mlx5/driver.h requires the definition of

> struct radix_tree_root, but does not need to know anything about

> other radix tree stuff.

> 

> Include <linux/radix-tree-root.h> instead of <linux/radix-tree.h> to

> reduce the number of included header files.

> 

> Also, add <linux/radix-tree.h> to include/linux/mlx5/gp.h where radix

> tree accessors are used.

> 

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Same objections as the mlx4 changes, just include both headers in
driver.h
diff mbox series

Patch

diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 401c897..0aea568 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -40,7 +40,7 @@ 
 #include <linux/semaphore.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
-#include <linux/radix-tree.h>
+#include <linux/radix-tree-root.h>
 #include <linux/workqueue.h>
 #include <linux/mempool.h>
 #include <linux/interrupt.h>
diff --git a/include/linux/mlx5/qp.h b/include/linux/mlx5/qp.h
index 66d19b6..a90996f 100644
--- a/include/linux/mlx5/qp.h
+++ b/include/linux/mlx5/qp.h
@@ -35,6 +35,7 @@ 
 
 #include <linux/mlx5/device.h>
 #include <linux/mlx5/driver.h>
+#include <linux/radix-tree.h>
 
 #define MLX5_INVALID_LKEY	0x100
 #define MLX5_SIG_WQE_SIZE	(MLX5_SEND_WQE_BB * 5)