summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/spinlock_types.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-07-27 11:07:03 +0100
committerWill Deacon <will.deacon@arm.com>2015-07-27 11:09:34 +0100
commit772d68355e2f65f71e0402e39aabfdea56f55083 (patch)
tree171dc992aa787b11728101653cda828b08314c68 /arch/arm64/include/asm/spinlock_types.h
parenta4653228a0f8d0a4a76d03a2dd15beaf6e78c22b (diff)
downloadlinux-772d68355e2f65f71e0402e39aabfdea56f55083.tar.bz2
arm64: include linux/types.h in asm/spinlock_types.h
Our ticket-based spinlock structures rely on a definition of u16, so include linux/types.h explicitly to ensure the thing compiles. Found by a module build failure in -next: arch/arm64/include/asm/spinlock_types.h:27:2: error: unknown type name 'u16' arch/arm64/include/asm/spinlock_types.h:28:2: error: unknown type name 'u16' arch/arm64/include/asm/spinlock_types.h:33:13: error: expected declaration specifiers or '...' before numeric constant include/linux/spinlock_types.h:21:2: error: unknown type name 'arch_spinlock_t' arch/arm64/include/asm/spinlock.h:34:35: error: unknown type name 'arch_spinlock_t' arch/arm64/include/asm/spinlock.h:65:37: error: unknown type name 'arch_spinlock_t' Reported-by: Russell King <linux@arm.linux.org.uk> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/spinlock_types.h')
-rw-r--r--arch/arm64/include/asm/spinlock_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/spinlock_types.h b/arch/arm64/include/asm/spinlock_types.h
index b8d383665f56..55be59a35e3f 100644
--- a/arch/arm64/include/asm/spinlock_types.h
+++ b/arch/arm64/include/asm/spinlock_types.h
@@ -20,6 +20,8 @@
# error "please don't include this file directly"
#endif
+#include <linux/types.h>
+
#define TICKET_SHIFT 16
typedef struct {