[PATCH] kill-the-BKL: fix missing #include smp_lock.h

From: Frederic Weisbecker
Date: Wed Apr 08 2009 - 16:18:16 EST


Impact: fix a build error

Latest tip:kill-the-BKL tree triggers this build error:

CC kernel/hung_task.o
kernel/hung_task.c: In function âcheck_hung_taskâ:
kernel/hung_task.c:103: erreur: implicit declaration of function âdebug_print_bklâ
make[1]: *** [kernel/hung_task.o] Erreur 1
make: *** [kernel/hung_task.o] Erreur 2

hung_task.c forget to include smp_lock.h

Signed-off-by: Frederic Weisbecker <fweisbec@xxxxxxxxx>
---
kernel/hung_task.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel/hung_task.c b/kernel/hung_task.c
index ea199d5..c790a59 100644
--- a/kernel/hung_task.c
+++ b/kernel/hung_task.c
@@ -13,6 +13,7 @@
#include <linux/freezer.h>
#include <linux/kthread.h>
#include <linux/lockdep.h>
+#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/sysctl.h>

--
1.6.1

--
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/