[RFC PATCH] bpf: sk_lookup_prog_ops can be static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
 filter.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/core/filter.c b/net/core/filter.c
index 477f3bb440c4c..d8153d217ca8e 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -9396,10 +9396,10 @@ static u32 sk_lookup_convert_ctx_access(enum bpf_access_type type,
 	return insn - insn_buf;
 }
 
-const struct bpf_prog_ops sk_lookup_prog_ops = {
+static const struct bpf_prog_ops sk_lookup_prog_ops = {
 };
 
-const struct bpf_verifier_ops sk_lookup_verifier_ops = {
+static const struct bpf_verifier_ops sk_lookup_verifier_ops = {
 	.get_func_proto		= sk_lookup_func_proto,
 	.is_valid_access	= sk_lookup_is_valid_access,
 	.convert_ctx_access	= sk_lookup_convert_ctx_access,



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux