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

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>

authored by

Rasmus Villemoes and committed by
Linus Torvalds
42cf8096 85c5e27c

+2 -2
+2 -2
lib/sort.c
··· 4 4 * Jan 23 2005 Matt Mackall <mpm@selenic.com> 5 5 */ 6 6 7 - #include <linux/kernel.h> 8 - #include <linux/module.h> 7 + #include <linux/types.h> 8 + #include <linux/export.h> 9 9 #include <linux/sort.h> 10 10 #include <linux/slab.h> 11 11