-
Notifications
You must be signed in to change notification settings - Fork 82
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
-Werror=incompatible-pointer-types in Linux v5.5 #22
Comments
Yep, here's the commit (in the Linux repo) that effected the change:
|
The module now builds, but I have not tested it; and one of the modifications was just a hack. There were two issues: (1) As noted above, commit (2) Additionally, there's
in
Again, I have not tested the module after building, and in Edit: Have now tested: it works fine, applying the patch pasted above. |
Thanks for this. I'd got the struct prop_ops stuff but I couldn't work out why the tx_timeout was wrong. I applied that change to just the driver file (r8168_n.c - I'm running k5.6-rc1 on one of my systems). It works for the rc kernel as well, I can confirm. |
Apologies in advance if this isn't the correct place to report this. This bug also effects v5.8.0 of the kernel, but the patch provided by @stuart-little resolves the issue. The patch applied cleanly (offset a few lines though) to v8.048.00, the version packaged in the r8168-dkms package provided for Ubuntu 20.04 LTS. |
With the very latest version 5.5 of the kernel I am getting
It would appear a struct type has changed in
/include/linux/proc_fs.h
, fromfile_operations
toproc_ops
or some such thing.The text was updated successfully, but these errors were encountered: