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

lib/dynamic_queue_limits.c: simplify includes

The file doesn't use anything from ctype.h. Instead of module.h, just use
export.h for EXPORT_SYMBOL. The latter requires the user to include
compiler.h, so do that explicitly instead of relying on some other header
pulling it in.

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
565ac23b 42cf8096

+2 -2
+2 -2
lib/dynamic_queue_limits.c
··· 3 3 * 4 4 * Copyright (c) 2011, Tom Herbert <therbert@google.com> 5 5 */ 6 - #include <linux/module.h> 7 6 #include <linux/types.h> 8 - #include <linux/ctype.h> 9 7 #include <linux/kernel.h> 10 8 #include <linux/jiffies.h> 11 9 #include <linux/dynamic_queue_limits.h> 10 + #include <linux/compiler.h> 11 + #include <linux/export.h> 12 12 13 13 #define POSDIFF(A, B) ((int)((A) - (B)) > 0 ? (A) - (B) : 0) 14 14 #define AFTER_EQ(A, B) ((int)((A) - (B)) >= 0)