Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rasmus Villemoes and committed by
Linus Torvalds
85c5e27c 114fc1af

+2 -2
+2 -2
lib/interval_tree.c
··· 1 - #include <linux/init.h> 2 1 #include <linux/interval_tree.h> 3 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 6 #define START(node) ((node)->start) 7 7 #define LAST(node) ((node)->last)