Commit bb2c0aea authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Jiri Kosina

HID: bpf: clean up entrypoint

We don't need to watch for calls on bpf_prog_put_deferred(), so remove
that from the entrypoints.bpf.c file.
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 6e021d64
......@@ -7,8 +7,6 @@
#define HID_BPF_MAX_PROGS 1024
extern void call_hid_bpf_prog_put_deferred(struct work_struct *work) __ksym;
struct {
__uint(type, BPF_MAP_TYPE_PROG_ARRAY);
__uint(max_entries, HID_BPF_MAX_PROGS);
......@@ -24,11 +22,4 @@ int BPF_PROG(hid_tail_call, struct hid_bpf_ctx *hctx)
return 0;
}
SEC("fentry/bpf_prog_put_deferred")
int BPF_PROG(hid_bpf_prog_put_deferred, struct work_struct *work)
{
call_hid_bpf_prog_put_deferred(work);
return 0;
}
char LICENSE[] SEC("license") = "GPL";
......@@ -173,7 +173,6 @@ hid_bpf_get_data(struct hid_bpf_ctx *ctx, unsigned int offset, const size_t rdwr
* can use.
*/
BTF_SET8_START(hid_bpf_kfunc_ids)
BTF_ID_FLAGS(func, call_hid_bpf_prog_put_deferred)
BTF_ID_FLAGS(func, hid_bpf_get_data, KF_RET_NULL)
BTF_SET8_END(hid_bpf_kfunc_ids)
......
......@@ -22,7 +22,4 @@ int hid_bpf_reconnect(struct hid_device *hdev);
struct bpf_prog;
/* HID-BPF internal kfuncs API */
void call_hid_bpf_prog_put_deferred(struct work_struct *work);
#endif
......@@ -499,11 +499,6 @@ void __hid_bpf_destroy_device(struct hid_device *hdev)
schedule_work(&release_work);
}
void call_hid_bpf_prog_put_deferred(struct work_struct *work)
{
/* kept around for patch readability, to be dropped in the next commmit */
}
#define HID_BPF_PROGS_COUNT 1
static struct bpf_link *links[HID_BPF_PROGS_COUNT];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment