Repository navigation
drm: apple: build the unnamed 500 thunk only where s2r uses it - #1629
Merged
Merged
Conversation
Firmware 27 and later never send the call, so the thunk is an unused static function there and breaks -Werror builds of iomfb_v27. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The s2r sequence that sends the unnamed 500 call only exists for H17 firmware older than 27.0. On firmware 27 the thunk is an unused static function, so iomfb_v27.o fails to build with -Werror:
This puts the thunk under the same firmware-version condition as its only caller. No behaviour change for firmware before 27.
Found building the Fedora-based arm64 config (asahi.config merged) on integration/aurora 6883020; the rest of that build completed with the fix applied.
🤖 Generated with Claude Code