Repository navigation
drm/fb-helper: Restore drm_fb_helper_lastclose() for out-of-tree modules - #2222
Merged
opsiff merged 1 commit intoOct 23, 2026
Conversation
6.18.55 Commit ("drm/client: Pass force parameter to client restore",
backported from v6.19) inlined drm_fb_helper_lastclose() into the client
restore path and removed the exported symbol. Out-of-tree drivers that
still call the old helper therefore fail to build:
loonggpu/loonggpu_kms.c:625:9: error: implicit declaration of function 'drm_fb_helper_lastclose'; did you mean 'drm_fb_helper_alloc_fbi'? [-Werror=implicit-function-declaration]
The loonggpu DKMS driver, for example, keeps the call for kernels older
than v6.12 and reaches it through loonggpu_driver_lastclose_kms().
Add drm_fb_helper_lastclose() back as an exported compatibility wrapper
around drm_fb_helper_restore_fbdev_mode_unlocked(), passing force = false
as the removed helper did. No functional change for in-tree code.
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Reviewer's GuideReintroduces the exported drm_fb_helper_lastclose() interface as a compatibility wrapper around drm_fb_helper_restore_fbdev_mode_unlocked(), allowing out-of-tree drivers that retain the legacy call to build without changing in-tree behavior. Sequence diagram for the restored fbdev lastclose compatibility helpersequenceDiagram
participant Driver as OutOfTreeDriver
participant Helper as drm_fb_helper_lastclose
participant Restore as drm_fb_helper_restore_fbdev_mode_unlocked
participant FB as FBDevConfiguration
Driver->>Helper: drm_fb_helper_lastclose(dev)
Helper->>Restore: drm_fb_helper_restore_fbdev_mode_unlocked(dev->fb_helper, false)
Restore->>FB: Restore fbdev mode
Restore-->>Helper: Return
Helper-->>Driver: Return
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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.
6.18.55 Commit ("drm/client: Pass force parameter to client restore", backported from v6.19) inlined drm_fb_helper_lastclose() into the client restore path and removed the exported symbol. Out-of-tree drivers that still call the old helper therefore fail to build:
loonggpu/loonggpu_kms.c:625:9: error: implicit declaration of function 'drm_fb_helper_lastclose'; did you mean 'drm_fb_helper_alloc_fbi'? [-Werror=implicit-function-declaration]
The loonggpu DKMS driver, for example, keeps the call for kernels older than v6.12 and reaches it through loonggpu_driver_lastclose_kms().
Add drm_fb_helper_lastclose() back as an exported compatibility wrapper around drm_fb_helper_restore_fbdev_mode_unlocked(), passing force = false as the removed helper did. No functional change for in-tree code.
Summary by Sourcery
Bug Fixes: