From: kernel test robot <lkp@intel.com>
To: Alex Deucher <alexander.deucher@amd.com>
Cc: oe-kbuild-all@lists.linux.dev, Mark Brown <broonie@kernel.org>
Subject: [linux-next:master 4682/4750] drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1777:8: error: implicit declaration of function 'drm_fb_helper_gem_is_fb'; did you mean 'drm_fb_helper_from_client'?
Date: Tue, 10 Mar 2026 07:40:42 +0800 [thread overview]
Message-ID: <202603100736.KcTrzKrn-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 343f51842f4ed7143872f3aa116a214a5619a4b9
commit: 99ece3600fdb60fef87268c6c05c66e5d02dbeb4 [4682/4750] Merge branch 'drm-next' of https://gitlab.freedesktop.org/agd5f/linux.git
config: powerpc-randconfig-001-20260310 (https://download.01.org/0day-ci/archive/20260310/202603100736.KcTrzKrn-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260310/202603100736.KcTrzKrn-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603100736.KcTrzKrn-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function 'amdgpu_display_suspend_helper':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1777:8: error: implicit declaration of function 'drm_fb_helper_gem_is_fb'; did you mean 'drm_fb_helper_from_client'? [-Werror=implicit-function-declaration]
1777 | if (!drm_fb_helper_gem_is_fb(dev->fb_helper, fb->obj[0])) {
| ^~~~~~~~~~~~~~~~~~~~~~~
| drm_fb_helper_from_client
cc1: some warnings being treated as errors
vim +1777 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1740
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1741 int amdgpu_display_suspend_helper(struct amdgpu_device *adev)
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1742 {
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1743 struct drm_device *dev = adev_to_drm(adev);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1744 struct drm_crtc *crtc;
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1745 struct drm_connector *connector;
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1746 struct drm_connector_list_iter iter;
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1747 int r;
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1748
c69d51395a3bd39 Guchun Chen 2023-03-09 1749 drm_kms_helper_poll_disable(dev);
c69d51395a3bd39 Guchun Chen 2023-03-09 1750
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1751 /* turn off display hw */
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1752 drm_modeset_lock_all(dev);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1753 drm_connector_list_iter_begin(dev, &iter);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1754 drm_for_each_connector_iter(connector, &iter)
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1755 drm_helper_connector_dpms(connector,
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1756 DRM_MODE_DPMS_OFF);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1757 drm_connector_list_iter_end(&iter);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1758 drm_modeset_unlock_all(dev);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1759 /* unpin the front buffers and cursors */
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1760 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1761 struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1762 struct drm_framebuffer *fb = crtc->primary->fb;
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1763
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1764 if (amdgpu_crtc->cursor_bo && !adev->enable_virtual_display) {
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1765 struct amdgpu_bo *aobj = gem_to_amdgpu_bo(amdgpu_crtc->cursor_bo);
93125cb704919f5 Srinivasan Shanmugam 2023-07-18 1766
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1767 r = amdgpu_bo_reserve(aobj, true);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1768 if (r == 0) {
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1769 amdgpu_bo_unpin(aobj);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1770 amdgpu_bo_unreserve(aobj);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1771 }
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1772 }
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1773
93125cb704919f5 Srinivasan Shanmugam 2023-07-18 1774 if (!fb || !fb->obj[0])
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1775 continue;
93125cb704919f5 Srinivasan Shanmugam 2023-07-18 1776
1837c76b780a420 Thomas Zimmermann 2026-03-04 @1777 if (!drm_fb_helper_gem_is_fb(dev->fb_helper, fb->obj[0])) {
1837c76b780a420 Thomas Zimmermann 2026-03-04 1778 struct amdgpu_bo *robj = gem_to_amdgpu_bo(fb->obj[0]);
1837c76b780a420 Thomas Zimmermann 2026-03-04 1779
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1780 r = amdgpu_bo_reserve(robj, true);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1781 if (r == 0) {
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1782 amdgpu_bo_unpin(robj);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1783 amdgpu_bo_unreserve(robj);
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1784 }
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1785 }
89e2b4373ae5215 Alex Deucher 2022-06-21 1786 }
4b12ee6f426e5e3 Victor Zhao 2021-04-27 1787 return 0;
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1788 }
a2e15b0e6c91a13 Alex Deucher 2021-03-19 1789
:::::: The code at line 1777 was first introduced by commit
:::::: 1837c76b780a4201e3d9f718e17c09b536df700f drm/amdgpu: Move test for fbdev GEM object into generic helper
:::::: TO: Thomas Zimmermann <tzimmermann@suse.de>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-09 23:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202603100736.KcTrzKrn-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.deucher@amd.com \
--cc=broonie@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.