mirror of https://github.com/torvalds/linux.git
Most architectures that support kprobes declare this function in their own asm/kprobes.h header and provide an override, but some are missing the prototype, which causes a warning for the __weak stub implementation: kernel/kprobes.c:1865:12: error: no previous prototype for 'kprobe_exceptions_notify' [-Werror=missing-prototypes] 1865 | int __weak kprobe_exceptions_notify(struct notifier_block *self, Move the prototype into linux/kprobes.h so it is visible to all the definitions. Link: https://lore.kernel.org/all/20231108125843.3806765-4-arnd@kernel.org/ Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> |
||
|---|---|---|
| .. | ||
| Kbuild | ||
| arcregs.h | ||
| asm-offsets.h | ||
| asserts.h | ||
| atomic-llsc.h | ||
| atomic-spinlock.h | ||
| atomic.h | ||
| atomic64-arcv2.h | ||
| barrier.h | ||
| bitops.h | ||
| bug.h | ||
| cache.h | ||
| cacheflush.h | ||
| checksum.h | ||
| cmpxchg.h | ||
| current.h | ||
| delay.h | ||
| disasm.h | ||
| dma.h | ||
| dsp-impl.h | ||
| dsp.h | ||
| dwarf.h | ||
| elf.h | ||
| entry-arcv2.h | ||
| entry-compact.h | ||
| entry.h | ||
| exec.h | ||
| fb.h | ||
| fpu.h | ||
| futex.h | ||
| highmem.h | ||
| hugepage.h | ||
| io.h | ||
| irq.h | ||
| irqflags-arcv2.h | ||
| irqflags-compact.h | ||
| irqflags.h | ||
| jump_label.h | ||
| kdebug.h | ||
| kgdb.h | ||
| kprobes.h | ||
| linkage.h | ||
| mach_desc.h | ||
| mmu-arcv2.h | ||
| mmu.h | ||
| mmu_context.h | ||
| module.h | ||
| page.h | ||
| pci.h | ||
| perf_event.h | ||
| pgalloc.h | ||
| pgtable-bits-arcv2.h | ||
| pgtable-levels.h | ||
| pgtable.h | ||
| processor.h | ||
| ptrace.h | ||
| sections.h | ||
| serial.h | ||
| setup.h | ||
| shmparam.h | ||
| smp.h | ||
| spinlock.h | ||
| spinlock_types.h | ||
| stacktrace.h | ||
| string.h | ||
| switch_to.h | ||
| syscall.h | ||
| syscalls.h | ||
| thread_info.h | ||
| timex.h | ||
| tlb.h | ||
| tlbflush.h | ||
| uaccess.h | ||
| unaligned.h | ||
| unwind.h | ||
| vermagic.h | ||
| vmalloc.h | ||