[PATCH] arm64: kasan: fix issues reported by sparse

Andrey Ryabinin ryabinin.a.a at gmail.com
Tue Oct 13 06:26:16 PDT 2015

On 10/13/2015 04:01 PM, Will Deacon wrote:
> 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 at arm.com>

Acked-by: Andrey Ryabinin <ryabinin.a.a at gmail.com>

More information about the linux-arm-kernel mailing list