Skip to content

Update to Linux 6.12#707

Merged
JoseExposito merged 2 commits intoDIGImend:masterfrom
Stroopwafe1:master
Jan 2, 2025
Merged

Update to Linux 6.12#707
JoseExposito merged 2 commits intoDIGImend:masterfrom
Stroopwafe1:master

Conversation

@Stroopwafe1
Copy link
Contributor

This patch allows the digimend kernel drivers to build on Linux kernel 6.12.
The reason it failed before is because of a header rename from <asm/unaligned.h> to <linux/unaligned.h>. And the struct of the hid_driver changed requiring a const pointer for the report_fixup

@kenhys
Copy link
Contributor

kenhys commented Dec 8, 2024

It would be nice if it also still supports 6.11 (#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0))

@Stroopwafe1
Copy link
Contributor Author

Stroopwafe1 commented Dec 16, 2024

I have updated the code with a check for the linux kernel, and I tested this in a VM with kernel version 6.9.3-76060903-generic and it built fine, as well as on my regular hardware using kernel 6.12.4-arch1-1. Let me know if there's anything else.

Oh and thank you @kenhys for the feedback, I didn't know you could check for the version like that

@SohamG
Copy link

SohamG commented Dec 30, 2024

Hey! I just updated to 6.12 and had to pull this driver from my system. I was wondering if this PR would land soon (given the primary maintainers resignation blog post)? I was considering adding this as a backport to my linux distro in the meanwhile (NixOS)

Copy link
Collaborator

@JoseExposito JoseExposito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was fixing the same issue, but I realized you fixed it already. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants