* [PATCH v2] drm/amdgpu: fix build for CONFIG_DRM_FBDEV_EMULATION=n
@ 2026-04-28 2:49 Yury Norov
2026-04-28 6:50 ` Thomas Zimmermann
0 siblings, 1 reply; 3+ messages in thread
From: Yury Norov @ 2026-04-28 2:49 UTC (permalink / raw)
To: Dave Airlie, Alex Deucher, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Simona Vetter, dri-devel, linux-kernel
Cc: Yury Norov, Yury Norov
The merge-commit 02e778f12359 ("Merge tag 'amd-drm-next-7.1-2026-03-12' of
https://gitlab.freedesktop.org/agd5f/linux into drm-next") removes the stub
for drm_fb_helper_gem_is_fb(), so the buld gets broken if DRM_FBDEV_EMULATION
is not set.
‘drm_fb_helper_gem_is_fb’; did you mean ‘drm_fb_helper_from_client’? [-Wimplicit-function-declaration]
1777 | if (!drm_fb_helper_gem_is_fb(dev->fb_helper, fb->obj[0])) {
| ^~~~~~~~~~~~~~~~~~~~~~~
| drm_fb_helper_from_client
Restore it.
Fixes: 02e778f12359 ("Merge tag 'amd-drm-next-7.1-2026-03-12' of https://gitlab.freedesktop.org/agd5f/linux into drm-next")
Signed-off-by: Yury Norov <ynorov@nvidia.com>
---
v2: restore only drm_fb_helper_gem_is_fb() (Thomas)
include/drm/drm_fb_helper.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
index bf391903443d..0c5e5ed7b5e7 100644
--- a/include/drm/drm_fb_helper.h
+++ b/include/drm/drm_fb_helper.h
@@ -273,6 +273,12 @@ int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper);
int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper);
bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper,
const struct drm_gem_object *obj);
+#else
+static inline bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper,
+ const struct drm_gem_object *obj)
+{
+ return false;
+}
#endif
#endif
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drm/amdgpu: fix build for CONFIG_DRM_FBDEV_EMULATION=n
2026-04-28 2:49 [PATCH v2] drm/amdgpu: fix build for CONFIG_DRM_FBDEV_EMULATION=n Yury Norov
@ 2026-04-28 6:50 ` Thomas Zimmermann
2026-04-28 17:39 ` Alex Deucher
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Zimmermann @ 2026-04-28 6:50 UTC (permalink / raw)
To: Yury Norov, Dave Airlie, Alex Deucher, Maarten Lankhorst,
Maxime Ripard, Simona Vetter, dri-devel, linux-kernel
Cc: Yury Norov
Am 28.04.26 um 04:49 schrieb Yury Norov:
> The merge-commit 02e778f12359 ("Merge tag 'amd-drm-next-7.1-2026-03-12' of
> https://gitlab.freedesktop.org/agd5f/linux into drm-next") removes the stub
> for drm_fb_helper_gem_is_fb(), so the buld gets broken if DRM_FBDEV_EMULATION
> is not set.
>
> ‘drm_fb_helper_gem_is_fb’; did you mean ‘drm_fb_helper_from_client’? [-Wimplicit-function-declaration]
> 1777 | if (!drm_fb_helper_gem_is_fb(dev->fb_helper, fb->obj[0])) {
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | drm_fb_helper_from_client
>
> Restore it.
>
> Fixes: 02e778f12359 ("Merge tag 'amd-drm-next-7.1-2026-03-12' of https://gitlab.freedesktop.org/agd5f/linux into drm-next")
> Signed-off-by: Yury Norov <ynorov@nvidia.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
> ---
> v2: restore only drm_fb_helper_gem_is_fb() (Thomas)
>
> include/drm/drm_fb_helper.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
> index bf391903443d..0c5e5ed7b5e7 100644
> --- a/include/drm/drm_fb_helper.h
> +++ b/include/drm/drm_fb_helper.h
> @@ -273,6 +273,12 @@ int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper);
> int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper);
> bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper,
> const struct drm_gem_object *obj);
> +#else
> +static inline bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper,
> + const struct drm_gem_object *obj)
> +{
> + return false;
> +}
> #endif
>
> #endif
--
--
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] drm/amdgpu: fix build for CONFIG_DRM_FBDEV_EMULATION=n
2026-04-28 6:50 ` Thomas Zimmermann
@ 2026-04-28 17:39 ` Alex Deucher
0 siblings, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2026-04-28 17:39 UTC (permalink / raw)
To: Thomas Zimmermann
Cc: Yury Norov, Dave Airlie, Alex Deucher, Maarten Lankhorst,
Maxime Ripard, Simona Vetter, dri-devel, linux-kernel, Yury Norov
Applied. Thanks!
Alex
On Tue, Apr 28, 2026 at 2:59 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>
>
>
> Am 28.04.26 um 04:49 schrieb Yury Norov:
> > The merge-commit 02e778f12359 ("Merge tag 'amd-drm-next-7.1-2026-03-12' of
> > https://gitlab.freedesktop.org/agd5f/linux into drm-next") removes the stub
> > for drm_fb_helper_gem_is_fb(), so the buld gets broken if DRM_FBDEV_EMULATION
> > is not set.
> >
> > ‘drm_fb_helper_gem_is_fb’; did you mean ‘drm_fb_helper_from_client’? [-Wimplicit-function-declaration]
> > 1777 | if (!drm_fb_helper_gem_is_fb(dev->fb_helper, fb->obj[0])) {
> > | ^~~~~~~~~~~~~~~~~~~~~~~
> > | drm_fb_helper_from_client
> >
> > Restore it.
> >
> > Fixes: 02e778f12359 ("Merge tag 'amd-drm-next-7.1-2026-03-12' of https://gitlab.freedesktop.org/agd5f/linux into drm-next")
> > Signed-off-by: Yury Norov <ynorov@nvidia.com>
>
> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
>
> > ---
> > v2: restore only drm_fb_helper_gem_is_fb() (Thomas)
> >
> > include/drm/drm_fb_helper.h | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
> > index bf391903443d..0c5e5ed7b5e7 100644
> > --- a/include/drm/drm_fb_helper.h
> > +++ b/include/drm/drm_fb_helper.h
> > @@ -273,6 +273,12 @@ int drm_fb_helper_hotplug_event(struct drm_fb_helper *fb_helper);
> > int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper);
> > bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper,
> > const struct drm_gem_object *obj);
> > +#else
> > +static inline bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper,
> > + const struct drm_gem_object *obj)
> > +{
> > + return false;
> > +}
> > #endif
> >
> > #endif
>
> --
> --
> 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)
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-28 17:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28 2:49 [PATCH v2] drm/amdgpu: fix build for CONFIG_DRM_FBDEV_EMULATION=n Yury Norov
2026-04-28 6:50 ` Thomas Zimmermann
2026-04-28 17:39 ` Alex Deucher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox