lkml.org 
[lkml]   [2021]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/gpu/drm/i915/gem/i915_gem_object.c:102: warning: expecting prototype for i915_gem_object_fini(). Prototype was for __i915_gem_object_fini() instead
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ee1703cda8dc777e937dec172da55beaf1a74919
commit: 068396bb21c8aa3b2f797c58eb9e623d7cf271bb drm/i915/ttm: Rework object initialization slightly
date: 7 weeks ago
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=068396bb21c8aa3b2f797c58eb9e623d7cf271bb
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 068396bb21c8aa3b2f797c58eb9e623d7cf271bb
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/gem/i915_gem_object.c:102: warning: expecting prototype for i915_gem_object_fini(). Prototype was for __i915_gem_object_fini() instead
drivers/gpu/drm/i915/gem/i915_gem_object.c:109: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Mark up the object's coherency levels for a given cache_level


vim +102 drivers/gpu/drm/i915/gem/i915_gem_object.c

91
92 /**
93 * i915_gem_object_fini - Clean up a GEM object initialization
94 * @obj: The gem object to cleanup
95 *
96 * This function cleans up gem object fields that are set up by
97 * drm_gem_private_object_init() and i915_gem_object_init().
98 * It's primarily intended as a helper for backends that need to
99 * clean up the gem object in separate steps.
100 */
101 void __i915_gem_object_fini(struct drm_i915_gem_object *obj)
> 102 {
103 mutex_destroy(&obj->mm.get_page.lock);
104 mutex_destroy(&obj->mm.get_dma_page.lock);
105 dma_resv_fini(&obj->base._resv);
106 }
107

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-17 22:20    [W:0.037 / U:1.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site