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
..
2019-06-25 14:26:50 +02:00
2019-06-22 08:59:24 -04:00
2019-05-21 10:50:46 +02:00
2019-06-05 17:37:06 +02:00
2019-05-24 09:00:11 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-06-15 07:24:11 -10:00
2019-06-05 17:37:17 +02:00
2019-06-19 17:09:08 +02:00
2019-05-21 11:28:45 +02:00
2019-05-21 10:50:46 +02:00
2019-06-19 17:09:55 +02:00
2019-06-14 11:51:44 +02:00
2019-06-26 14:44:07 +02:00
2019-04-29 16:48:03 +02:00
2019-04-04 21:04:13 -04:00
2019-06-05 17:37:17 +02:00
2019-05-30 11:26:37 -07:00
2019-04-26 13:51:03 -04:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-07 20:03:32 -07:00
2019-06-05 17:37:17 +02:00
2019-01-25 11:22:43 -08:00
2019-06-19 17:09:55 +02:00
2019-03-07 18:32:02 -08:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:36:37 +02:00
2019-06-03 12:02:03 +02:00
2019-06-19 17:09:06 +02:00
2019-05-21 10:50:45 +02:00
2019-06-11 15:44:45 -10:00
2019-05-21 11:52:39 +02:00
2019-05-31 10:38:57 -07:00
2019-05-30 11:26:35 -07:00
2019-04-09 14:19:06 +02:00
2019-06-01 15:51:31 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:35 -07:00
2019-05-24 20:16:01 +02:00
2019-05-21 10:50:45 +02:00
2019-04-19 12:59:36 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-03-07 18:32:02 -08:00
2019-06-19 17:09:06 +02:00
2019-06-19 17:09:06 +02:00
2019-06-19 17:09:06 +02:00
2019-05-24 20:16:01 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:39 -07:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:37:17 +02:00
2019-05-24 20:16:01 +02:00
2019-06-13 17:34:56 -10:00
2019-05-24 17:27:11 +02:00
2019-05-24 17:27:11 +02:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:37:17 +02:00
2019-04-25 22:06:11 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:35 -07:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-11 15:44:45 -10:00
2019-05-21 10:50:45 +02:00
2019-03-12 13:27:20 -07:00
2019-05-21 10:50:45 +02:00
2019-04-19 12:39:32 +02:00
2019-05-07 19:06:04 -07:00
2019-06-05 15:06:07 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:37:16 +02:00
2019-06-02 11:04:42 -07:00
2019-05-24 17:27:11 +02:00
2019-05-07 14:31:03 +02:00
2019-06-01 15:51:31 -07:00
2019-01-04 13:13:47 -08:00
2019-06-14 20:18:27 -07:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:52:39 +02:00
2019-03-26 14:42:53 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:37 -07:00
2019-06-05 17:37:17 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:37:17 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-06-05 17:37:17 +02:00
2019-06-05 17:37:17 +02:00
2019-04-19 09:46:05 -07:00
2019-04-18 14:05:51 +02:00
2019-04-16 16:55:15 +02:00
2019-05-21 10:50:45 +02:00