aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_queue_limits.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-12 18:02:37 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-12 21:54:15 -0500
commit565ac23b81ebbcfad4111fa9c743ebc7fc25a4f7 (patch)
treec2839768ba76ffcee5cf106e79cc8bb23b460c0b /lib/dynamic_queue_limits.c
parent42cf809654e4ea2fa16dd73608e153f1c6f7c2ed (diff)
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>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
-rw-r--r--lib/dynamic_queue_limits.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dynamic_queue_limits.c b/lib/dynamic_queue_limits.c
index 0777c5a45fa0..f346715e2255 100644
--- a/lib/dynamic_queue_limits.c
+++ b/lib/dynamic_queue_limits.c
@@ -3,12 +3,12 @@
3 * 3 *
4 * Copyright (c) 2011, Tom Herbert <therbert@google.com> 4 * Copyright (c) 2011, Tom Herbert <therbert@google.com>
5 */ 5 */
6#include <linux/module.h>
7#include <linux/types.h> 6#include <linux/types.h>
8#include <linux/ctype.h>
9#include <linux/kernel.h> 7#include <linux/kernel.h>
10#include <linux/jiffies.h> 8#include <linux/jiffies.h>
11#include <linux/dynamic_queue_limits.h> 9#include <linux/dynamic_queue_limits.h>
10#include <linux/compiler.h>
11#include <linux/export.h>
12 12
13#define POSDIFF(A, B) ((int)((A) - (B)) > 0 ? (A) - (B) : 0) 13#define POSDIFF(A, B) ((int)((A) - (B)) > 0 ? (A) - (B) : 0)
14#define AFTER_EQ(A, B) ((int)((A) - (B)) >= 0) 14#define AFTER_EQ(A, B) ((int)((A) - (B)) >= 0)