summaryrefslogtreecommitdiffstats
path: root/lib/interval_tree.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-13 00:02:32 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-13 03:54:15 +0100
commit85c5e27c4a7d085e8a0e112f659f6375c6f309e1 (patch)
tree82c3ef8feec014ebe8e6e15c6c6dd41272bee301 /lib/interval_tree.c
parenthexdump: make it return number of bytes placed in buffer (diff)
downloadlinux-85c5e27c4a7d085e8a0e112f659f6375c6f309e1.tar.xz
linux-85c5e27c4a7d085e8a0e112f659f6375c6f309e1.zip
lib/interval_tree.c: simplify includes
The file uses nothing from init.h, and also doesn't need the full module.h machinery; export.h is sufficient. The latter requires the user to ensure compiler.h is included, so do that explicitly instead of relying on some other header pulling it in. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/interval_tree.c')
-rw-r--r--lib/interval_tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/interval_tree.c b/lib/interval_tree.c
index f367f9ad544c..c85f6600a5f8 100644
--- a/lib/interval_tree.c
+++ b/lib/interval_tree.c
@@ -1,7 +1,7 @@
-#include <linux/init.h>
#include <linux/interval_tree.h>
#include <linux/interval_tree_generic.h>
-#include <linux/module.h>
+#include <linux/compiler.h>
+#include <linux/export.h>
#define START(node) ((node)->start)
#define LAST(node) ((node)->last)