From 1eb7d4592e21f1111966b97cdf2407ac35002b68 Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Sun, 24 Nov 2024 14:22:01 +0100 Subject: [PATCH] hid-xpadneo, core: Match kernel 6.12 report_fixup signature This tripped some compilers when promoting warning to errors. Link: https://github.com/atar-axis/xpadneo/pull/506 Signed-off-by: Kai Krakow --- hid-xpadneo/src/hid-xpadneo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c index 30a5a12e..3e999890 100644 --- a/hid-xpadneo/src/hid-xpadneo.c +++ b/hid-xpadneo/src/hid-xpadneo.c @@ -659,7 +659,7 @@ static int xpadneo_input_mapping(struct hid_device *hdev, struct hid_input *hi, #if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0) static u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize) #else -static const u8 *xpadneo_report_fixup(struct hid_device *hdev, u8 *rdesc, unsigned int *rsize) +static const __u8 *xpadneo_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) #endif { struct xpadneo_devdata *xdata = hid_get_drvdata(hdev);