]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Remove inline from bpf_do_trace_printk
authorStanislav Fomichev <sdf@google.com>
Thu, 6 Aug 2020 18:26:12 +0000 (11:26 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Aug 2020 23:53:17 +0000 (16:53 -0700)
commitd305c70602e37606f11c716acbbe0e19fe81c661
treeeb3b951c56f03ab30669639a1353db56620f1dc9
parentd60275506d9a82c5291ea30b4fe87c089ec1c496
bpf: Remove inline from bpf_do_trace_printk

I get the following error during compilation on my side:
kernel/trace/bpf_trace.c: In function 'bpf_do_trace_printk':
kernel/trace/bpf_trace.c:386:34: error: function 'bpf_do_trace_printk' can never be inlined because it uses variable argument lists
 static inline __printf(1, 0) int bpf_do_trace_printk(const char *fmt, ...)
                                  ^

Fixes: 09d79637096d ("bpf: Use dedicated bpf_trace_printk event instead of trace_printk()")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200806182612.1390883-1-sdf@google.com
kernel/trace/bpf_trace.c