* [PR PATCH] xpadneo: Fix dkms build for linux6.12
@ 2024-11-21 21:47 SpidFightFR
2024-11-21 21:48 ` SpidFightFR
2024-11-21 23:57 ` [PR PATCH] [Merged]: " classabbyamp
0 siblings, 2 replies; 3+ messages in thread
From: SpidFightFR @ 2024-11-21 21:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 762 bytes --]
There is a new pull request by SpidFightFR against master on the void-packages repository
https://github.com/SpidFightFR/void-packages fix-xpadneo-6.12
https://github.com/void-linux/void-packages/pull/53184
xpadneo: Fix dkms build for linux6.12
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### Local build testing
- I built this PR locally for my native architecture, (x64-GlibC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- x64-MuslC
Ref: https://github.com/atar-axis/xpadneo/issues/498
A patch file from https://github.com/void-linux/void-packages/pull/53184.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fix-xpadneo-6.12-53184.patch --]
[-- Type: text/x-diff, Size: 1931 bytes --]
From 60a443d6368e07fcca2bb054a09dc967068a58f0 Mon Sep 17 00:00:00 2001
From: SpidFightFR <spidfight@swisscows.email>
Date: Thu, 21 Nov 2024 22:35:08 +0100
Subject: [PATCH] xpadneo: Fix dkms build for linux6.12
---
.../patches/fix-xpadneo-dkms-linux-6.12.patch | 24 +++++++++++++++++++
srcpkgs/xpadneo/template | 2 +-
2 files changed, 25 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch
diff --git a/srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch b/srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch
new file mode 100644
index 00000000000000..edc5061862c08b
--- /dev/null
+++ b/srcpkgs/xpadneo/patches/fix-xpadneo-dkms-linux-6.12.patch
@@ -0,0 +1,24 @@
+diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c
+index 1a25631..c70b7cf 100644
+--- a/hid-xpadneo/src/hid-xpadneo.c
++++ b/hid-xpadneo/src/hid-xpadneo.c
+@@ -10,6 +10,7 @@
+
+ #include <linux/delay.h>
+ #include <linux/module.h>
++#include <linux/version.h>
+
+ #include "xpadneo.h"
+
+@@ -712,7 +713,11 @@ static int xpadneo_input_mapping(struct hid_device *hdev, struct hid_input *hi,
+ return MAP_AUTO;
+ }
+
++#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)
++#endif
+ {
+ struct xpadneo_devdata *xdata = hid_get_drvdata(hdev);
+
diff --git a/srcpkgs/xpadneo/template b/srcpkgs/xpadneo/template
index e0dcb7db4db3e3..6591bee8e34b39 100644
--- a/srcpkgs/xpadneo/template
+++ b/srcpkgs/xpadneo/template
@@ -1,7 +1,7 @@
# Template file for 'xpadneo'
pkgname=xpadneo
version=0.9.6
-revision=1
+revision=2
depends="dkms bluez"
short_desc="Bluetooth driver for Xbox One Wireless Controller"
maintainer="Joshua Krämer <joshua@kraemer.link>"
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-21 23:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-21 21:47 [PR PATCH] xpadneo: Fix dkms build for linux6.12 SpidFightFR
2024-11-21 21:48 ` SpidFightFR
2024-11-21 23:57 ` [PR PATCH] [Merged]: " classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).