diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-02-12 18:02:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 21:54:15 -0500 |
commit | 85c5e27c4a7d085e8a0e112f659f6375c6f309e1 (patch) | |
tree | 82c3ef8feec014ebe8e6e15c6c6dd41272bee301 | |
parent | 114fc1afb2de7dec40da137dc2a55cd38fc220f2 (diff) |
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>
-rw-r--r-- | lib/interval_tree.c | 4 |
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 @@ | |||
1 | #include <linux/init.h> | ||
2 | #include <linux/interval_tree.h> | 1 | #include <linux/interval_tree.h> |
3 | #include <linux/interval_tree_generic.h> | 2 | #include <linux/interval_tree_generic.h> |
4 | #include <linux/module.h> | 3 | #include <linux/compiler.h> |
4 | #include <linux/export.h> | ||
5 | 5 | ||
6 | #define START(node) ((node)->start) | 6 | #define START(node) ((node)->start) |
7 | #define LAST(node) ((node)->last) | 7 | #define LAST(node) ((node)->last) |