Skip to content

Commit 42cf809

Browse files
Villemoestorvalds
authored andcommitted
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>
1 parent 85c5e27 commit 42cf809

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/sort.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Jan 23 2005 Matt Mackall <mpm@selenic.com>
55
*/
66

7-
#include <linux/kernel.h>
8-
#include <linux/module.h>
7+
#include <linux/types.h>
8+
#include <linux/export.h>
99
#include <linux/sort.h>
1010
#include <linux/slab.h>
1111

0 commit comments

Comments
 (0)