lkml.org 
[lkml]   [2021]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC PATCH t-kristo-pm] HID: hid_prog_ops can be static
drivers/hid/hid-bpf.c:151:27: warning: symbol 'hid_prog_ops' was not declared. Should it be static?
drivers/hid/hid-bpf.c:184:31: warning: symbol 'hid_verifier_ops' was not declared. Should it be static?

Fixes: 1995666cad0e ("HID: initial BPF implementation")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
hid-bpf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hid/hid-bpf.c b/drivers/hid/hid-bpf.c
index 8792cb5eacd20..fd12a2059d66f 100644
--- a/drivers/hid/hid-bpf.c
+++ b/drivers/hid/hid-bpf.c
@@ -148,7 +148,7 @@ static int hid_bpf_prog_query(struct hid_device *hdev, const union bpf_attr *att

}

-const struct bpf_prog_ops hid_prog_ops = {
+static const struct bpf_prog_ops hid_prog_ops = {
};

static const struct bpf_func_proto *
@@ -181,7 +181,7 @@ static bool hid_is_valid_access(int off, int size,
return true;
}

-const struct bpf_verifier_ops hid_verifier_ops = {
+static const struct bpf_verifier_ops hid_verifier_ops = {
.get_func_proto = hid_func_proto,
.is_valid_access = hid_is_valid_access
};
\
 
 \ /
  Last update: 2021-12-04 14:07    [W:0.026 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site