Skip to content

fix: update platform_profile API for kernel 6.17.10#73

Open
erikafinoti wants to merge 1 commit into
0x7375646F:mainfrom
erikafinoti:fix-kernel-6.17.10-platform-profile
Open

fix: update platform_profile API for kernel 6.17.10#73
erikafinoti wants to merge 1 commit into
0x7375646F:mainfrom
erikafinoti:fix-kernel-6.17.10-platform-profile

Conversation

@erikafinoti

Copy link
Copy Markdown

Problem

Module fails to compile on kernel 6.17 due to changes in the platform_profile API.

Solution

Updated the code to use the new platform_profile_ops structure.

Changes:

  • Replace struct platform_profile_handler with platform_profile_ops
  • Update platform_profile_register() to new 4-parameter signature
  • Update platform_profile_notify() to include device parameter

Testing

  • Tested on Kali Linux with kernel 6.17.10+kali-amd64
  • Module compiles and loads successfully
  • Platform profiles work as expected

Replace deprecated platform_profile_handler with platform_profile_ops.

Changes:
- Use struct platform_profile_ops instead of platform_profile_handler
- Update platform_profile_register() to new 4-parameter signature
- Update platform_profile_notify() to include device parameter

Fixes compilation on kernel 6.17 (tested on Kali Linux - 6.17.10)
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