summaryrefslogtreecommitdiffstats
path: root/lib/sort.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-12 15:02:35 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-12 18:54:15 -0800
commit42cf809654e4ea2fa16dd73608e153f1c6f7c2ed (patch)
tree927fdf62df517e9ee34dd3e96b0bc4d82dc753cf /lib/sort.c
parent85c5e27c4a7d085e8a0e112f659f6375c6f309e1 (diff)
downloadlinux-stable-42cf809654e4ea2fa16dd73608e153f1c6f7c2ed.tar.gz
linux-stable-42cf809654e4ea2fa16dd73608e153f1c6f7c2ed.tar.bz2
linux-stable-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.c4
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>