Skip to content

drm: apple: build the unnamed 500 thunk only where s2r uses it - #1629

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fix/dcp-fw27-unused-500
Nov 12, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fix/dcp-fw27-unused-500

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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:

iomfb_template.c:543:14: error: unused function 'dcp_unnamed_500' [-Werror,-Wunused-function]

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

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]>
@RyanTheTide
RyanTheTide merged commit 9fb90b4 into integration/aurora Nov 12, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the fix/dcp-fw27-unused-500 branch November 12, 2026 05:04
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