diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-02-13 02:02:35 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-13 05:54:15 +0300 |
commit | 42cf809654e4ea2fa16dd73608e153f1c6f7c2ed (patch) | |
tree | 927fdf62df517e9ee34dd3e96b0bc4d82dc753cf | |
parent | 85c5e27c4a7d085e8a0e112f659f6375c6f309e1 (diff) | |
download | linux-42cf809654e4ea2fa16dd73608e153f1c6f7c2ed.tar.xz |
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>
-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> |