Skip to content

Fix build error on Linux >= 6.12 by guarding no_llseek#25

Merged
jserv merged 1 commit into
sysprog21:mainfrom
weiso131:fix-no-llseek
Sep 10, 2025
Merged

Fix build error on Linux >= 6.12 by guarding no_llseek#25
jserv merged 1 commit into
sysprog21:mainfrom
weiso131:fix-no-llseek

Conversation

@weiso131

Copy link
Copy Markdown
Contributor

Linux 6.12 removed the no_llseek macro. Add a version check so that .llseek = no_llseek is only used on kernels prior to 6.12.

Linux 6.12 removed the no_llseek macro. Add a version check so that
.llseek = no_llseek is only used on kernels prior to 6.12.

@EricccTaiwan EricccTaiwan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, and I think you can do the same cleanup with simrupt and LKMPG.

google/gasket-driver#35
https://lists.ubuntu.com/archives/fwts-devel/2025-March/013973.html

@weiso131

weiso131 commented Sep 6, 2025

Copy link
Copy Markdown
Contributor Author

Thanks @EricccTaiwan for the review and suggestions.
I have opened a related pull request for simrupt: sysprog21/simrupt#14

As for LKMPG, it seems that no_llseek is not used there.

@jserv
jserv merged commit 5cb4dec into sysprog21:main Sep 10, 2025
@jserv

jserv commented Sep 10, 2025

Copy link
Copy Markdown
Contributor

Thank @weiso131 for contributing!

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.

3 participants