Re: [PATCH drm-misc-next v8 09/12] drm/gpuvm: reference count drm_gpuvm structures

From: kernel test robot
Date: Thu Nov 02 2023 - 06:47:23 EST


Hi Danilo,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 3c6c7ca4508b6cb1a033ac954c50a1b2c97af883]

url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-gpuvm-convert-WARN-to-drm_WARN-variants/20231102-073332
base: 3c6c7ca4508b6cb1a033ac954c50a1b2c97af883
patch link: https://lore.kernel.org/r/20231101233113.8059-10-dakr%40redhat.com
patch subject: [PATCH drm-misc-next v8 09/12] drm/gpuvm: reference count drm_gpuvm structures
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20231102/202311021833.q8aYDJnr-lkp@xxxxxxxxx/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231102/202311021833.q8aYDJnr-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311021833.q8aYDJnr-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_gpuvm.c:810: warning: expecting prototype for drm_gpuvm_bo_put(). Prototype was for drm_gpuvm_put() instead


vim +810 drivers/gpu/drm/drm_gpuvm.c

801
802 /**
803 * drm_gpuvm_bo_put() - drop a struct drm_gpuvm reference
804 * @gpuvm: the &drm_gpuvm to release the reference of
805 *
806 * This releases a reference to @gpuvm.
807 */
808 void
809 drm_gpuvm_put(struct drm_gpuvm *gpuvm)
> 810 {
811 if (gpuvm)
812 kref_put(&gpuvm->kref, drm_gpuvm_free);
813 }
814 EXPORT_SYMBOL_GPL(drm_gpuvm_put);
815

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki