[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202411070038.tZJzI7NC-lkp@intel.com>
Date: Thu, 7 Nov 2024 00:19:02 +0800
From: kernel test robot <lkp@...el.com>
To: Luca Ceresoli <luca.ceresoli@...tlin.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>
Cc: oe-kbuild-all@...ts.linux.dev,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Luca Ceresoli <luca.ceresoli@...tlin.com>
Subject: Re: [PATCH v2 3/4] drm/mode_object: add
drm_mode_object_read_refcount()
Hi Luca,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 42f7652d3eb527d03665b09edac47f85fb600924]
url: https://github.com/intel-lab-lkp/linux/commits/Luca-Ceresoli/drm-drm_mode_object-fix-typo-in-kerneldoc/20241106-185032
base: 42f7652d3eb527d03665b09edac47f85fb600924
patch link: https://lore.kernel.org/r/20241106-drm-small-improvements-v2-3-f6e2aef86719%40bootlin.com
patch subject: [PATCH v2 3/4] drm/mode_object: add drm_mode_object_read_refcount()
config: arc-randconfig-002-20241106 (https://download.01.org/0day-ci/archive/20241107/202411070038.tZJzI7NC-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241107/202411070038.tZJzI7NC-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411070038.tZJzI7NC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_mode_object.c:228: warning: expecting prototype for drm_mode_object_get(). Prototype was for drm_mode_object_read_refcount() instead
vim +228 drivers/gpu/drm/drm_mode_object.c
219
220 /**
221 * drm_mode_object_get - read the refcount for a mode object
222 * @obj: DRM mode object
223 *
224 * This function returns the current object's refcount if it is a
225 * refcounted modeset object, or 0 on any other object.
226 */
227 unsigned int drm_mode_object_read_refcount(struct drm_mode_object *obj)
> 228 {
229 unsigned int refcount = 0;
230
231 if (obj->free_cb) {
232 refcount = kref_read(&obj->refcount);
233 DRM_DEBUG("OBJ ID: %d (%d)\n", obj->id, refcount);
234 }
235
236 return refcount;
237 }
238 EXPORT_SYMBOL(drm_mode_object_read_refcount);
239
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists