mirror of https://github.com/torvalds/linux.git
The setup_profiling_timer() is mostly un-implemented by many architectures. In many places it isn't guarded by CONFIG_PROFILE which is needed for it to be used. Make it a weak symbol in kernel/profile.c and remove the 'return -EINVAL' implementations from the kenrel. There are a couple of architectures which do return 0 from the setup_profiling_timer() function but they don't seem to do anything else with it. To keep the /proc compatibility for now, leave these for a future update or removal. On ARM, this fixes the following sparse warning: arch/arm/kernel/smp.c:793:5: warning: symbol 'setup_profiling_timer' was not declared. Should it be static? Link: https://lkml.kernel.org/r/20220721195509.418205-1-ben-linux@fluff.org Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| asm-offsets.c | ||
| dma.c | ||
| head.S | ||
| hexagon_ksyms.c | ||
| irq_cpu.c | ||
| kgdb.c | ||
| module.c | ||
| process.c | ||
| ptrace.c | ||
| reset.c | ||
| screen_info.c | ||
| setup.c | ||
| signal.c | ||
| smp.c | ||
| stacktrace.c | ||
| syscalltab.c | ||
| time.c | ||
| trampoline.S | ||
| traps.c | ||
| vdso.c | ||
| vm_entry.S | ||
| vm_events.c | ||
| vm_init_segtable.S | ||
| vm_ops.S | ||
| vm_switch.S | ||
| vm_vectors.S | ||
| vmlinux.lds.S | ||