[PATCH] tracing: add #include <linux/delay.h> to fix build failure in test_work()

From: Ingo Molnar
Date: Thu Apr 16 2009 - 04:26:51 EST


This build failure occured on a few rare configs:

kernel/trace/trace_events.c: In function âtest_workâ:
kernel/trace/trace_events.c:975: error: implicit declaration of function âudelayâ
kernel/trace/trace_events.c:980: error: implicit declaration of function âmsleepâ

delay.h is included in way too many other headers, hiding cases
where new usage is added without header inclusion.

Impact: build fix
Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
kernel/trace/trace_events.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 96934f0..791501d 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -15,6 +15,7 @@
#include <linux/uaccess.h>
#include <linux/module.h>
#include <linux/ctype.h>
+#include <linux/delay.h>

#include "trace_output.h"

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/