softirq: Move do_softirq_own_stack() to generic asm header
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Feb 2021 23:40:53 +0000 (00:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Feb 2021 22:34:16 +0000 (23:34 +0100)
commitdb1cc7aede37eb9235759131ddfefd9c0ea5136f
tree1d110d199d4f21c7ac3a0beba952bf8beaa74639
parentcd1a41ceba8a4caef4d18a3a14d6d0f8c656efe4
softirq: Move do_softirq_own_stack() to generic asm header

To avoid include recursion hell move the do_softirq_own_stack() related
content into a generic asm header and include it from all places in arch/
which need the prototype.

This allows architectures to provide an inline implementation of
do_softirq_own_stack() without introducing a lot of #ifdeffery all over the
place.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210210002513.289960691@linutronix.de
arch/parisc/kernel/irq.c
arch/powerpc/kernel/irq.c
arch/s390/kernel/irq.c
arch/sh/kernel/irq.c
arch/sparc/kernel/irq_64.c
arch/x86/kernel/irq_32.c
arch/x86/kernel/irq_64.c
include/asm-generic/Kbuild
include/asm-generic/softirq_stack.h [new file with mode: 0644]
include/linux/interrupt.h
kernel/softirq.c