linux/arch/sh/kernel
Geert Uytterhoeven fdb2dd78ba sh: traps: Make is_dsp_inst() static
If CONFIG_SH_DSP=y (e.g. se7343_defconfig):

    arch/sh/kernel/traps_32.c:572:5: warning: no previous prototype for ‘is_dsp_inst’ [-Wmissing-prototypes]

There are no users outside this file, so make it static.

While at it, convert the dummy for the CONFIG_SH_DSP=n case from a macro
to a static inline function, to increase type-safety.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/8525fe446e7f24649a83b8cd6ca8b736ab746b80.1709579038.git.geert+renesas@glider.be
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
2024-05-02 12:01:31 +02:00
..
cpu sh: cache: Move forward declarations to <asm/cacheflush.h> 2024-05-02 12:01:31 +02:00
syscalls lsm/stable-6.8 PR 20240105 2024-01-09 12:57:46 -08:00
vsyscall sh: vsyscall: Remove unnecessary $(foreach ...) 2024-01-19 11:57:12 +01:00
.gitignore
asm-offsets.c
crash_dump.c vmcore: convert copy_oldmem_page() to take an iov_iter 2022-04-29 14:37:59 -07:00
debugtraps.S
disassemble.c
dma-coherent.c
dumpstack.c
dwarf.c sh: dwarf: Make dwarf_lookup_fde() static 2024-05-02 12:01:25 +02:00
entry-common.S
ftrace.c
head_32.S sh: init: use OF_EARLY_FLATTREE for early init 2023-03-23 10:00:03 +01:00
hw_breakpoint.c
idle.c sh/cpu: Switch to arch_cpu_finalize_init() 2023-06-16 10:16:00 +02:00
io_trapped.c sh: remove CONFIG_SET_FS support 2022-02-25 09:36:06 +01:00
io.c
iomap.c
ioport.c sh: machvec: Remove custom ioport_{un,}map() 2023-10-25 16:50:30 +02:00
irq_32.c
irq.c asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
kdebugfs.c
kgdb.c
kprobes.c sh: kprobes: Remove unneeded kprobe_opcode_t casts 2024-05-02 12:01:25 +02:00
machine_kexec.c arch, crash: move arch_crash_save_vmcoreinfo() out to file vmcore_info.c 2024-02-23 17:48:25 -08:00
machvec.c sh: machvec: Use char[] for section boundaries 2022-09-13 10:33:17 -07:00
Makefile arch, crash: move arch_crash_save_vmcoreinfo() out to file vmcore_info.c 2024-02-23 17:48:25 -08:00
module.c
nmi_debug.c sh: nmi_debug: fix return value of __setup handler 2023-03-23 10:00:02 +01:00
perf_callchain.c
perf_event.c
process_32.c kernel: exit: cleanup release_thread() 2022-09-11 21:55:07 -07:00
process.c
ptrace_32.c sh: ptrace: user_regset_copyin_ignore() always returns 0 2022-11-15 14:30:41 -08:00
ptrace.c
reboot.c sh, kexec: fix the incorrect ifdeffery and dependency of CONFIG_KEXEC 2023-12-12 17:20:18 -08:00
relocate_kernel.S
return_address.c sh: return_address: Add missing #include <asm/ftrace.h> 2024-05-02 12:01:23 +02:00
setup.c sh, crash: wrap crash dumping code into crash related ifdefs 2024-02-23 17:48:23 -08:00
sh_bios.c
sh_ksyms_32.c
signal_32.c sh: sanitize the flags on sigreturn 2023-03-09 10:01:59 -08:00
smp.c sh: smp: Fix missing prototypes 2024-05-02 12:01:24 +02:00
stacktrace.c
swsusp.c
sys_sh32.c
sys_sh.c
syscalls_32.S
time.c
topology.c drivers/base/node: consolidate node device subsystem initialization in node_dev_init() 2022-03-22 15:57:10 -07:00
traps_32.c sh: traps: Make is_dsp_inst() static 2024-05-02 12:01:31 +02:00
traps.c sh: ftrace: Fix missing prototypes 2024-05-02 12:01:24 +02:00
unwinder.c
vmcore_info.c arch, crash: move arch_crash_save_vmcoreinfo() out to file vmcore_info.c 2024-02-23 17:48:25 -08:00
vmlinux.lds.S Scheduler updates in this cycle are: 2023-02-20 17:41:08 -08:00