diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-02-13 00:02:35 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-13 03:54:15 +0100 |
commit | 42cf809654e4ea2fa16dd73608e153f1c6f7c2ed (patch) | |
tree | 927fdf62df517e9ee34dd3e96b0bc4d82dc753cf /lib/sort.c | |
parent | lib/interval_tree.c: simplify includes (diff) | |
download | linux-42cf809654e4ea2fa16dd73608e153f1c6f7c2ed.tar.xz linux-42cf809654e4ea2fa16dd73608e153f1c6f7c2ed.zip |
lib/sort.c: use simpler includes
sort.c doesn't use facilities from kernel.h, but does use some types
defined in linux/types.h. Include the latter directly instead of relying
on some other header doing it. Similarly, include linux/export.h directly
instead of through module.h. This removes 80 lines from the dependency
file .sort.o.cmd.
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/sort.c')
-rw-r--r-- | lib/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sort.c b/lib/sort.c index 926d00429ed2..14fc1dfadb3f 100644 --- a/lib/sort.c +++ b/lib/sort.c @@ -4,8 +4,8 @@ * Jan 23 2005 Matt Mackall <mpm@selenic.com> */ -#include <linux/kernel.h> -#include <linux/module.h> +#include <linux/types.h> +#include <linux/export.h> #include <linux/sort.h> #include <linux/slab.h> |