From: Thomas Zimmermann <tzimmermann@suse.de>
To: Matt Coster <matt.coster@imgtec.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Jocelyn Falempe <jfalempe@redhat.com>
Cc: Frank Binns <frank.binns@imgtec.com>,
Karolis Mituzas <karolis.mituzas@imgtec.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/fb-helper: Add force parameter to stub function
Date: Wed, 14 Jan 2026 17:07:32 +0100 [thread overview]
Message-ID: <91edf43f-108b-45ab-af7d-097097ff6c24@suse.de> (raw)
In-Reply-To: <20260114-drm-fb-helper-stub-fix-v1-1-3a1934b42c93@imgtec.com>
Hi
Am 14.01.26 um 15:57 schrieb Matt Coster:
> The signature of drm_fb_helper_restore_fbdev_mode_unlocked() was modified
> in commit 943240d342f14 ("drm/client: Pass force parameter to client
> restore") to add a force parameter, but this was not added to the stub
> equivalent for when CONFIG_DRM_FBDEV_EMULATION is not enabled.
The only caller depends on CONFIG_DRM_FBDEV_EMULATION, so the stub
should never be called. If possible, remove it entirely.
Most of these stub functions are left overs from when fbdev emulation
was less well isolated from the rest of DRM.
Best regards
Thomas
>
> Suggested-by: Karolis Mituzas <karolis.mituzas@imgtec.com>
> Fixes: 943240d342f14 ("drm/client: Pass force parameter to client restore")
> Signed-off-by: Matt Coster <matt.coster@imgtec.com>
> ---
> include/drm/drm_fb_helper.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
> index dd9a18f8de5a7..eebb36a099698 100644
> --- a/include/drm/drm_fb_helper.h
> +++ b/include/drm/drm_fb_helper.h
> @@ -333,7 +333,8 @@ static inline int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
> }
>
> static inline int
> -drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper)
> +drm_fb_helper_restore_fbdev_mode_unlocked(struct drm_fb_helper *fb_helper,
> + bool force)
> {
> return 0;
> }
>
> ---
> base-commit: b91a565ed14fcf900b4d95e86882b4b763860986
> change-id: 20260114-drm-fb-helper-stub-fix-03f07bd2be61
>
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)
prev parent reply other threads:[~2026-01-14 16:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 14:57 Matt Coster
2026-01-14 16:07 ` Thomas Zimmermann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=91edf43f-108b-45ab-af7d-097097ff6c24@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=frank.binns@imgtec.com \
--cc=jfalempe@redhat.com \
--cc=karolis.mituzas@imgtec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=matt.coster@imgtec.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®