Skip to content

Commit 93d3fde

Browse files
author
Ingo Molnar
committed
perf/bpf: Change the !CONFIG_BPF_SYSCALL stubs to static inlines
Otherwise the compiler will be unhappy if they go unused, which they do on allnoconfigs. Signed-off-by: Ingo Molnar <[email protected]> Cc: Kyle Huey <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a265c9f commit 93d3fde

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

kernel/events/core.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9638,21 +9638,21 @@ static void perf_event_free_bpf_handler(struct perf_event *event)
96389638
bpf_prog_put(prog);
96399639
}
96409640
#else
9641-
static int bpf_overflow_handler(struct perf_event *event,
9642-
struct perf_sample_data *data,
9643-
struct pt_regs *regs)
9641+
static inline int bpf_overflow_handler(struct perf_event *event,
9642+
struct perf_sample_data *data,
9643+
struct pt_regs *regs)
96449644
{
96459645
return 1;
96469646
}
96479647

9648-
static int perf_event_set_bpf_handler(struct perf_event *event,
9649-
struct bpf_prog *prog,
9650-
u64 bpf_cookie)
9648+
static inline int perf_event_set_bpf_handler(struct perf_event *event,
9649+
struct bpf_prog *prog,
9650+
u64 bpf_cookie)
96519651
{
96529652
return -EOPNOTSUPP;
96539653
}
96549654

9655-
static void perf_event_free_bpf_handler(struct perf_event *event)
9655+
static inline void perf_event_free_bpf_handler(struct perf_event *event)
96569656
{
96579657
}
96589658
#endif

0 commit comments

Comments
 (0)