Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hexagon: vm_events: remove unused dummy_handler()

Clang warns:

arch/hexagon/kernel/vm_events.c:76:6: warning: no previous prototype for function 'dummy_handler' [-Wmissing-prototypes]
76 | void dummy_handler(struct pt_regs *regs)
| ^
arch/hexagon/kernel/vm_events.c:76:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
76 | void dummy_handler(struct pt_regs *regs)
| ^
| static

This function appears to be entirely unused, so remove it.

Link: https://lkml.kernel.org/r/20231130-hexagon-missing-prototypes-v1-16-5c34714afe9e@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Brian Cain <bcain@quicinc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Nathan Chancellor and committed by
Andrew Morton
d9f85d8b d75eb334

-7
-7
arch/hexagon/kernel/vm_events.c
··· 73 73 pt_psp(regs), pt_badva(regs), ints_enabled(regs)); 74 74 } 75 75 76 - void dummy_handler(struct pt_regs *regs) 77 - { 78 - unsigned int elr = pt_elr(regs); 79 - printk(KERN_ERR "Unimplemented handler; ELR=0x%08x\n", elr); 80 - } 81 - 82 - 83 76 void arch_do_IRQ(struct pt_regs *regs) 84 77 { 85 78 int irq = pt_cause(regs);