Commit 7987d2b5 authored by Stanislav Fomichev's avatar Stanislav Fomichev Committed by Yang Yingliang
Browse files

bpf: Remove inline from bpf_do_trace_printk

mainline inclusion
from mainline-v5.9-rc1
commit 0d360d64
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4PKDW


CVE: NA

--------------------------------

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: ac5a72ea ("bpf: Use dedicated bpf_trace_printk event instead of trace_printk()")
Signed-off-by: default avatarStanislav Fomichev <sdf@google.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200806182612.1390883-1-sdf@google.com


Signed-off-by: Liu Xinpeng <liuxp11@chinatelecom.cn>	# openEuler_contributor
Signed-off-by: Ctyun Kernel <ctyuncommiter01@chinatelecom.cn>	# openEuler_contributor
Signed-off-by: default avatarPu Lehui <pulehui@huawei.com>
Reviewed-by: default avatarYang Jihong <yangjihong1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 1fc5c9f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment