Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions kernel/bpf/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2536,11 +2536,14 @@ static unsigned int __bpf_prog_ret1(const void *ctx,
return 1;
}

DEFINE_PER_CPU(struct bpf_prog_stats, __dummy_stats);

static struct bpf_prog_dummy {
struct bpf_prog prog;
} dummy_bpf_prog = {
.prog = {
.bpf_func = __bpf_prog_ret1,
.stats = &__dummy_stats,
},
};

Expand Down
Loading