File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919#include <linux/module.h>
2020#include "hid_bpf_dispatch.h"
2121
22- struct hid_ops * hid_ops ;
22+ const struct hid_ops * hid_ops ;
2323EXPORT_SYMBOL (hid_ops );
2424
2525u8 *
Original file line number Diff line number Diff line change @@ -3064,7 +3064,7 @@ int hid_check_keys_pressed(struct hid_device *hid)
30643064EXPORT_SYMBOL_GPL (hid_check_keys_pressed );
30653065
30663066#ifdef CONFIG_HID_BPF
3067- static struct hid_ops __hid_ops = {
3067+ static const struct hid_ops __hid_ops = {
30683068 .hid_get_report = hid_get_report ,
30693069 .hid_hw_raw_request = __hid_hw_raw_request ,
30703070 .hid_hw_output_report = __hid_hw_output_report ,
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ struct hid_ops {
7878 const struct bus_type * bus_type ;
7979};
8080
81- extern struct hid_ops * hid_ops ;
81+ extern const struct hid_ops * hid_ops ;
8282
8383/**
8484 * struct hid_bpf_ops - A BPF struct_ops of callbacks allowing to attach HID-BPF
You can’t perform that action at this time.
0 commit comments