summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/kasan.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-10-13 14:01:06 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2015-10-13 14:54:42 +0100
commit83040123fde42ec532d3b632efb5f7f84024e61d (patch)
tree668de0164f4db8ac50f426839770edd5139a8b51 /arch/arm64/include/asm/kasan.h
parent4fc57692268bf841a3cc90b3b056640de2bb1605 (diff)
arm64: kasan: fix issues reported by sparse
Sparse reports some new issues introduced by the kasan patches: arch/arm64/mm/kasan_init.c:91:13: warning: no previous prototype for 'kasan_early_init' [-Wmissing-prototypes] void __init kasan_early_init(void) ^ arch/arm64/mm/kasan_init.c:91:13: warning: symbol 'kasan_early_init' was not declared. Should it be static? [sparse] This patch resolves the problem by adding a prototype for kasan_early_init and marking the function as asmlinkage, since it's only called from head.S. Signed-off-by: Will Deacon <will.deacon@arm.com> Acked-by: Andrey Ryabinin <ryabinin.a.a@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kasan.h')
-rw-r--r--arch/arm64/include/asm/kasan.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kasan.h b/arch/arm64/include/asm/kasan.h
index 71dfe14acdca..2774fa384c47 100644
--- a/arch/arm64/include/asm/kasan.h
+++ b/arch/arm64/include/asm/kasan.h
@@ -5,6 +5,7 @@
#ifdef CONFIG_KASAN
+#include <linux/linkage.h>
#include <asm/memory.h>
/*
@@ -27,6 +28,7 @@
#define KASAN_SHADOW_OFFSET (KASAN_SHADOW_END - (1ULL << (64 - 3)))
void kasan_init(void);
+asmlinkage void kasan_early_init(void);
#else
static inline void kasan_init(void) { }