Skip to content

fix: treat RHEL 10.2 bin_attribute callbacks as const - #10123

Merged
chvamshi-xilinx merged 1 commit into
Xilinx:masterfrom
ManojTakasi:fix/el10.2-bin-attribute-const
Oct 19, 2026
Merged

chvamshi-xilinx merged 1 commit into
Xilinx:masterfrom
ManojTakasi:fix/el10.2-bin-attribute-const

Conversation

@ManojTakasi

Copy link
Copy Markdown
Collaborator

Problem solved by the commit

Alma, RHEL, and Rocky 10.2 backport the const sysfs bin_attribute API while reporting kernel 6.12. Keep the old callback type on earlier RHEL releases.

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

New OS support

How problem was solved, alternative solutions (if any) and why they were rejected

RHEL 10.2 backports the const bin_attribute callbacks while staying on 6.12. Added the macro for RHEL 10.2 and later versions

Risks (if any) associated the changes in the commit

low

What has been tested and how, request additional testing if necessary

Tested on ALmalinux 10.2

Documentation impact (if any)

NA

Alma, RHEL, and Rocky 10.2 backport the const sysfs bin_attribute
API while reporting kernel 6.12. Keep the old callback type on
earlier RHEL releases.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@chvamshi-xilinx
chvamshi-xilinx merged commit 316d7d4 into Xilinx:master Oct 19, 2026
26 checks passed
chvamshi-xilinx pushed a commit that referenced this pull request Oct 19, 2026
Alma, RHEL, and Rocky 10.2 backport the const sysfs bin_attribute
API while reporting kernel 6.12. Keep the old callback type on
earlier RHEL releases.


(cherry picked from commit 316d7d4)

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

2 participants