linux-bl808/kernel/trace
Yonghong Song 9db1ff0a41 bpf: fix compiler warning with CONFIG_MODULES=n
With CONFIG_MODULES=n, the following compiler warning occurs:
  /data/users/yhs/work/net-next/kernel/trace/bpf_trace.c:605:13: warning:
      ‘do_bpf_send_signal’ defined but not used [-Wunused-function]
  static void do_bpf_send_signal(struct irq_work *entry)

The __init function send_signal_irq_work_init(), which calls
do_bpf_send_signal(), is defined under CONFIG_MODULES. Hence,
when CONFIG_MODULES=n, nobody calls static function do_bpf_send_signal(),
hence the warning.

The init function send_signal_irq_work_init() should work without
CONFIG_MODULES. Moving it out of CONFIG_MODULES
code section fixed the compiler warning, and also make bpf_send_signal()
helper work without CONFIG_MODULES.

Fixes: 8b401f9ed2 ("bpf: implement bpf_send_signal() helper")
Reported-By: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2019-06-26 14:44:07 +02:00
..
blktrace.c
bpf_trace.c bpf: fix compiler warning with CONFIG_MODULES=n 2019-06-26 14:44:07 +02:00
fgraph.c
ftrace.c ftrace: Fix NULL pointer dereference in free_ftrace_func_mapper() 2019-06-14 17:40:21 -04:00
ftrace_internal.h
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
power-traces.c
preemptirq_delay_test.c
ring_buffer.c The major changes in this tracing update includes: 2019-05-15 16:05:47 -07:00
ring_buffer_benchmark.c ring-buffer: Fix mispelling of Calculate 2019-05-08 12:15:12 -04:00
rpm-traces.c
trace.c tracing: Make two symbols static 2019-06-14 16:49:26 -04:00
trace.h tracing: Silence GCC 9 array bounds warning 2019-05-25 23:04:30 -04:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_dynevent.c
trace_dynevent.h
trace_entries.h
trace_event_perf.c
trace_events.c tracing: Fix partial reading of trace event's id file 2019-05-08 12:15:12 -04:00
trace_events_filter.c tracing: Avoid memory leak in predicate_parse() 2019-05-28 16:27:58 -04:00
trace_events_filter_test.h
trace_events_hist.c tracing: Add a check_val() check before updating cond_snapshot() track_val 2019-05-21 12:48:07 -04:00
trace_events_trigger.c
trace_export.c
trace_functions.c
trace_functions_graph.c
trace_hwlat.c
trace_irqsoff.c
trace_kdb.c tracing: Silence GCC 9 array bounds warning 2019-05-25 23:04:30 -04:00
trace_kprobe.c
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_mmiotrace.c
trace_nop.c
trace_output.c tracing: Fix out-of-range read in trace_stack_print() 2019-06-14 16:28:42 -04:00
trace_output.h
trace_preemptirq.c
trace_printk.c
trace_probe.c tracing: Replace kzalloc with kcalloc 2019-05-08 12:15:12 -04:00
trace_probe.h
trace_probe_tmpl.h tracing: probeevent: Do not accumulate on ret variable 2019-05-08 12:15:11 -04:00
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c tracing/uprobe: Fix obsolete comment on trace_uprobe_create() 2019-06-14 17:00:36 -04:00
tracing_map.c
tracing_map.h