summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/module.c
diff options
context:
space:
mode:
authorPaul Walmsley <pwalmsley@nvidia.com>2015-01-06 01:38:41 +0100
committerWill Deacon <will.deacon@arm.com>2015-01-07 12:40:59 +0100
commit2c2b282d001e9934adeac93c10eb037b81d532f5 (patch)
tree8321428e8ecab6540d66bc06196807abe5a96022 /arch/arm64/kernel/module.c
parentarm64: fix missing linux/bug.h include in asm/arch_timer.h (diff)
downloadlinux-2c2b282d001e9934adeac93c10eb037b81d532f5.tar.xz
linux-2c2b282d001e9934adeac93c10eb037b81d532f5.zip
arm64: fix missing asm/alternative.h include in kernel/module.c
On next-20150105, defconfig compilation breaks with: arch/arm64/kernel/module.c:408:4: error: implicit declaration of function ‘apply_alternatives’ [-Werror=implicit-function-declaration] Fix by including asm/alternative.h, where the apply_alternatives() prototype is declared. This second version incorporates a comment from Mark Rutland <mark.rutland@arm.com> to keep the includes in alphabetical order by filename. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Paul Walmsley <pwalmsley@nvidia.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to '')
-rw-r--r--arch/arm64/kernel/module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c
index fd027b101de5..9b6f71db2709 100644
--- a/arch/arm64/kernel/module.c
+++ b/arch/arm64/kernel/module.c
@@ -25,6 +25,7 @@
#include <linux/mm.h>
#include <linux/moduleloader.h>
#include <linux/vmalloc.h>
+#include <asm/alternative.h>
#include <asm/insn.h>
#include <asm/sections.h>