Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: fix build for CONFIG_DRM_FBDEV_EMULATION=n

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")
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Yury Norov <ynorov@nvidia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 7b81bc38e92c2522484c42671401eaa023ae8831)

authored by

Yury Norov and committed by
Alex Deucher
927011b6 d0f5711f

+6
+6
include/drm/drm_fb_helper.h
··· 273 273 int drm_fb_helper_initial_config(struct drm_fb_helper *fb_helper); 274 274 bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper, 275 275 const struct drm_gem_object *obj); 276 + #else 277 + static inline bool drm_fb_helper_gem_is_fb(const struct drm_fb_helper *fb_helper, 278 + const struct drm_gem_object *obj) 279 + { 280 + return false; 281 + } 276 282 #endif 277 283 278 284 #endif