Commit 2c2b282d authored by Paul Walmsley's avatar Paul Walmsley Committed by Will Deacon

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
<> to keep the includes in alphabetical order
by filename.
Signed-off-by: default avatarPaul Walmsley <>
Cc: Paul Walmsley <>
Cc: Catalin Marinas <>
Cc: Will Deacon <>
Acked-by: default avatarMark Rutland <>
Signed-off-by: default avatarWill Deacon <>
parent 082471a8
......@@ -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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment