From f5b2d53fe908a847d8000d7831d411cf68731fca Mon Sep 17 00:00:00 2001 From: MmAaXx500 Date: Sun, 24 Nov 2024 00:24:21 +0100 Subject: fix report_fixup() on linux 6.12 "HID: change return type of report_fixup() to const" fe73965 --- src/hid-tmff2.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/hid-tmff2.c') diff --git a/src/hid-tmff2.c b/src/hid-tmff2.c index 3b51445..e691af4 100644 --- a/src/hid-tmff2.c +++ b/src/hid-tmff2.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "hid-tmff2.h" @@ -712,8 +713,13 @@ oom_err: return ret; } +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0) static __u8 *tmff2_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) +#else +static const __u8 *tmff2_report_fixup(struct hid_device *hdev, __u8 *rdesc, + unsigned int *rsize) +#endif { struct tmff2_device_entry *tmff2 = tmff2_from_hdev(hdev); -- cgit v1.3