diff options
author | Laura Abbott <lauraa@codeaurora.org> | 2014-11-21 21:50:38 +0000 |
---|---|---|
committer | Kees Cook <keescook@google.com> | 2015-10-07 13:11:53 -0700 |
commit | e025cf3e255ff6aa000c148e3f31e6f285d361b6 (patch) | |
tree | 7035f7e3be0ed8cb780127f3802a3d4ac39ecbe6 /arch/arm64/include/asm/irq.h | |
parent | 5be60a9db38af201efcedd4a29c47bc5b714c235 (diff) |
UPSTREAM: arm64: Treat handle_arch_irq as a function pointer
handle_arch_irq isn't actually text, it's just a function pointer.
It doesn't need to be stored in the text section and doing so
causes problesm if we ever want to make the kernel text read only.
Declare handle_arch_irq as a proper function pointer stored in
the data section.
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit fcff588633e848aa728a4437ef96d437299ba03d)
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Bug: 24475017
Change-Id: I7c842503cd70881fa78bbeb47d98f15bb83f6446
Signed-off-by: Kees Cook <keescook@google.com>
Diffstat (limited to 'arch/arm64/include/asm/irq.h')
-rw-r--r-- | arch/arm64/include/asm/irq.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/irq.h b/arch/arm64/include/asm/irq.h index e1f7ecdde11f..1eebf5bb0b58 100644 --- a/arch/arm64/include/asm/irq.h +++ b/arch/arm64/include/asm/irq.h @@ -3,7 +3,6 @@ #include <asm-generic/irq.h> -extern void (*handle_arch_irq)(struct pt_regs *); extern void migrate_irqs(void); extern void set_handle_irq(void (*handle_irq)(struct pt_regs *)); |