History

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, ...) ^

Stanislav Fomichev committed 6 years ago

Commit 0d360d61 parent d48556f1 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/trace/bpf_trace.c+1−1
@@ -383,7 +383,7 @@ static DEFINE_RAW_SPINLOCK(trace_printk_lock); · 382 unmodified lines
383 383
384#define BPF_TRACE_PRINTK_SIZE 1024384#define BPF_TRACE_PRINTK_SIZE 1024
385 385
386static inline __printf(1, 0) int bpf_do_trace_printk(const char *fmt, ...)386static __printf(1, 0) int bpf_do_trace_printk(const char *fmt, ...)
387{387{
388 static char buf[BPF_TRACE_PRINTK_SIZE];388 static char buf[BPF_TRACE_PRINTK_SIZE];
389 unsigned long flags;389 unsigned long flags;