Skip to contentSkip to conversation

Warning: drivers/gpu/drm/drm_gpuvm.c:1836 expecting prototype for drm_gpuvm_bo_obtain(). Prototype was for drm_gpuvm_bo_obtain_locked() instead

PATCH Applied kernel test robot 3 participants 3 messages Jan 9

Subsystems (3)
lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://gitlab.freedesktop.org/drm/misc/kernel.git for-linux-next
head:   ec27500c8f2b65a3be6ce39a5844d6d246d1b2b0
commit: 9bf4ca1e699c272defe9636f9812ff33a448d650 [1/2] drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260109/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260109/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> Warning: drivers/gpu/drm/drm_gpuvm.c:1836 expecting prototype for drm_gpuvm_bo_obtain(). Prototype was for drm_gpuvm_bo_obtain_locked() instead
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reviewer
#1 lore raw

PATCH 1/1 drm/gpuvm: fix name in kernel doc of drm_gpuvm_bo_obtain_locked()

When renaming this function, the name in the docs was not updated. This causes a KernelDoc warning. Thus, fix it.

Fixes 9bf4ca1e699c ("drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode")

---
Does anyone know what the config option to enable these warnings in my own build is?

 drivers/gpu/drm/drm_gpuvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_gpuvm.c +2 -2
index 0bb115b6b59c..c75b4877ab92 100644
@@ -1815,8 +1815,8 @@ drm_gpuvm_bo_find(struct drm_gpuvm *gpuvm,
 EXPORT_SYMBOL_GPL(drm_gpuvm_bo_find);
 
 /**
- * drm_gpuvm_bo_obtain() - obtains an instance of the &drm_gpuvm_bo for the
- * given &drm_gpuvm and &drm_gem_object
+ * drm_gpuvm_bo_obtain_locked() - obtains an instance of the &drm_gpuvm_bo for
+ * the given &drm_gpuvm and &drm_gem_object
  * @gpuvm: The &drm_gpuvm the @obj is mapped in.
  * @obj: The &drm_gem_object being mapped in the @gpuvm.
  *

base-commit: ec27500c8f2b65a3be6ce39a5844d6d246d1b2b0

Signature · 1 line
2.52.0.457.g6b5491de43-goog
maintainer Applied
#2 lore raw

Re: [PATCH] drm/gpuvm: fix name in kernel doc of drm_gpuvm_bo_obtain_locked()

Quoted 7 lines · Alice Ryhl

When renaming this function, the name in the docs was not updated. This causes a KernelDoc warning. Thus, fix it.

Fixes 9bf4ca1e699c ("drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode")

Applied to drm-misc-next, thanks!

Quoted 3 lines

---
Does anyone know what the config option to enable these warnings in my own build is?

I think any of the documentation targets should do the trick, I usually use the htmldocs make target.