-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux 6.11 compatibility #533
base: master
Are you sure you want to change the base?
Conversation
for linux commit 0edb555a65d1ef047a9805051c36922b52a38a9d: platform: Make platform_driver::remove() return void
for linux commit 3ff1180a39fbc43ae69d4238e6922c57e3278910: gpiolib: Remove data-less gpiochip_add() function
👍 Awesome |
If you additionally add the following change, then the modules also build on kernel 6.12, which will be the new LTS kernel as far as I understand.
|
I can confirm that modules build on Archlinux (aarch64) Kernel 6.12. But are you sure, no_llseek and noop_llseek are the same in this context? As I understood with no_llseek you can test if llseek is possible at all, while noop_llseek does not check this? |
Thanks for your feedback. You're maybe right, I looked through the kernel commits and found this: torvalds/linux@cb787f4
|
I think alexreinert can light up the darkness here :) I will test the modules this weekend for function with my raspberrymatic in a docker and will give feedback. I also never used no_llseek but function description of the both look potentially "getting issues"... We will see. |
Update: |
I can confirm that everything is working well. I have removed all lines with .llseek = no_llseek, |
I can also confirm that it's working under kernel 6.12 without issues - at least nothing obvious. I removed the lines with .llseek = no_llseek, too. |
Thanks for this PR, I've used a similar version to get this buildroot project working https://github.com/home-assistant/operating-system/pull/3767/files#diff-bb010bc93b85377ba08d15223fc4f926fe3fe4c0d3f291ace6138cf2160c4795 |
Hi,
This adds support for linux kernel 6.11.
This kernel has 2 breaking changes that made
sudo dpkg-reconfigure pivccu-modules-dkms
fail as it couldn't compile the kernel module.With the changes it works for me on a Ubuntu Server 24.10 VM (kernel 6.11.0-8-generic) using raspberrymatic in docker with the HB-RF-ETH.
In
kernel/generic_raw_uart.h
the function__##__raw_uart_driver##_remove
had to be changed fromint
tovoid
because of this kernel commit:In
kernel/hb_rf_eth.c
we need to use gpiochip_add_data as gpiochip_add was removed in this kernel commit:The old function calls should probably be left in there so it would still compile on older kernels, but I don't know how to do that...
Also i'm not sure if those kernel changes were introduced with 6.11 or in earlier versions.