[Patch bpf-next] bpf: remove unused parameter from ___bpf_prog_run

2021-03-31 Thread He Fengqing
'stack' parameter is not used in ___bpf_prog_run, the base address have been set to FP reg. So consequently remove it. Signed-off-by: He Fengqing --- kernel/bpf/core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/core.c b/kernel/bpf/co

[Patch bpf-next] net: filter: Remove unused bpf_load_pointer

2021-03-29 Thread He Fengqing
Remove unused bpf_load_pointer function in filter.h Signed-off-by: He Fengqing --- include/linux/filter.h | 9 - 1 file changed, 9 deletions(-) diff --git a/include/linux/filter.h b/include/linux/filter.h index eecfd82db648..9a09547bc7ba 100644 --- a/include/linux/filter.h +++ b