Skip to content

Fix platform_profile compilation by relying on kernel version instead of "lts" flag - #289

Open
ArKT-7 wants to merge 2 commits into
JafarAkhondali:mainfrom
ArKT-7:main
Open

Fix platform_profile compilation by relying on kernel version instead of "lts" flag#289
ArKT-7 wants to merge 2 commits into
JafarAkhondali:mainfrom
ArKT-7:main

Conversation

@ArKT-7

@ArKT-7 ArKT-7 commented Apr 4, 2026

Copy link
Copy Markdown

Hey, thanks for this awesome module.

I ran into a compilation error recently while trying to install this on a newer kernel (Linux 6.18 on CachyOS/Arch)

The platform_profile API was officially introduced in Linux 5.12. Previously, the build script passed 'lts' flag that forced legacy dummy functions to compile, causing conflicting type errors on modern kernels. Now, the module compiles perfectly while still preserving the dummy functions for any legacy kernel older than 5.12.

ArKT-7 added 2 commits April 4, 2026 14:35
… of 'lts' flag

The platform_profile API was introduced in Linux 5.12. Previously, the build script passed 'lts' flag that forced legacy dummy functions to compile, causing conflicting type errors on modern kernels. 

By doing this change, the module now compiles on all modern kernels while still preserving the dummy functions for any legacy kernel older than 5.12.
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.

1 participant