[PATCH] x86, spinlock: Include threads.h

From: Thomas Meyer
Date: Tue Sep 30 2014 - 04:04:16 EST


NR_CPUS is used, but not included. Fix this.

Signed-off-by: Thomas Meyer <thomas@xxxxxxxx>
---

diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h
index 54f1c80..db586f0 100644
--- a/arch/x86/include/asm/spinlock.h
+++ b/arch/x86/include/asm/spinlock.h
@@ -3,6 +3,7 @@

#include <linux/jump_label.h>
#include <linux/atomic.h>
+#include <linux/threads.h>
#include <asm/page.h>
#include <asm/processor.h>
#include <linux/compiler.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/