Re: [PATCH] drm/fbdev-helper: Fix deletion of stub for drm_fb_helper_gem_is_fb()

From: Mike Marciniszyn

Date: Thu May 07 2026 - 15:12:13 EST


On Thu, May 07, 2026 at 06:10:12PM +0000, Dmitry Ilvokhin wrote:
> On Fri, May 01, 2026 at 04:43:13PM -0400, mike.marciniszyn@xxxxxxxxx wrote:
> > From: Mike Marciniszyn <mmarcini@xxxxxxxx>
> >
> > When CONFIG_DRM_FBDEV_EMULATION is not defined this error results
> > when building amdgpu_display.c with CONFIG_DRM_AMDGPU:
> >
> > error: call to undeclared function 'drm_fb_helper_gem_is_fb'; ISO C99 and
> > later do not support implicit function
> > declarations [-Wimplicit-function-declaration]
> >
> > 1777 | if (!drm_fb_helper_gem_is_fb(dev->fb_helper, fb->obj[0])) {
> >
> > Cc: stable@xxxxxxxxxxxxxxx
> > Signed-off-by: Mike Marciniszyn <mmarcini@xxxxxxxx>
>
> Just hit the same problem, thanks for the fix.
>
> Reviewed-by: Dmitry Ilvokhin <d@xxxxxxxxxxxx>

Thanks, but actually there was already a fix.

Take a look at linux.git/master:

commit 927011b65a875302d08709bbe82eaf4d0d96c5d5
Author: Yury Norov <ynorov@xxxxxxxxxx>
Date: Mon Apr 27 22:49:41 2026 -0400

drm/amdgpu: fix build for CONFIG_DRM_FBDEV_EMULATION=n

I encountered this in net-next, but the above has yet to be put into net-next.

Mike