Skip to content

Commit 722c938

Browse files
xhackerustcKAGA-KOKO
authored andcommitted
irqchip/riscv-intc: Remove asmlinkage
The two functions riscv_intc_aia_irq() and riscv_intc_irq() are only called by C functions. Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8cb2dbf commit 722c938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/irqchip/irq-riscv-intc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ static unsigned int riscv_intc_nr_irqs __ro_after_init = BITS_PER_LONG;
2626
static unsigned int riscv_intc_custom_base __ro_after_init = BITS_PER_LONG;
2727
static unsigned int riscv_intc_custom_nr_irqs __ro_after_init;
2828

29-
static asmlinkage void riscv_intc_irq(struct pt_regs *regs)
29+
static void riscv_intc_irq(struct pt_regs *regs)
3030
{
3131
unsigned long cause = regs->cause & ~CAUSE_IRQ_FLAG;
3232

3333
if (generic_handle_domain_irq(intc_domain, cause))
3434
pr_warn_ratelimited("Failed to handle interrupt (cause: %ld)\n", cause);
3535
}
3636

37-
static asmlinkage void riscv_intc_aia_irq(struct pt_regs *regs)
37+
static void riscv_intc_aia_irq(struct pt_regs *regs)
3838
{
3939
unsigned long topi;
4040

0 commit comments

Comments
 (0)