Skip to content

Commit 0d360d6

Browse files
fomichevAlexei Starovoitov
authored andcommitted
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: ac5a72e ("bpf: Use dedicated bpf_trace_printk event instead of trace_printk()") Signed-off-by: Stanislav Fomichev <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent d48556f commit 0d360d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/bpf_trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ static DEFINE_RAW_SPINLOCK(trace_printk_lock);
383383

384384
#define BPF_TRACE_PRINTK_SIZE 1024
385385

386-
static inline __printf(1, 0) int bpf_do_trace_printk(const char *fmt, ...)
386+
static __printf(1, 0) int bpf_do_trace_printk(const char *fmt, ...)
387387
{
388388
static char buf[BPF_TRACE_PRINTK_SIZE];
389389
unsigned long flags;

0 commit comments

Comments
 (0)