From 3d81a0680884e6d76d6b63c1913035fd9070d2bf Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Thu, 24 Aug 2017 08:59:31 -0700 Subject: bpf: fix function type for __bpf_prog_run Bug: 67506682 Change-Id: I096a470c65a2a1867c51da9a33843ae23bf5e547 Signed-off-by: Sami Tolvanen Signed-off-by: Chatur27 --- kernel/bpf/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 879ca844ba1d..66d64db4f8c7 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -466,7 +466,7 @@ EXPORT_SYMBOL_GPL(__bpf_call_base); * * Decode and execute eBPF instructions. */ -static unsigned int __bpf_prog_run(void *ctx, const struct bpf_insn *insn) +static unsigned int __bpf_prog_run(const struct sk_buff *ctx, const struct bpf_insn *insn) { u64 stack[MAX_BPF_STACK / sizeof(u64)]; u64 regs[MAX_BPF_REG], tmp; -- cgit v1.2.3