Re: [PATCH v1 4/6] dma-buf: Acquire wait-wound context on attachment

From: kernel test robot
Date: Thu Jul 14 2022 - 23:39:19 EST

Hi Dmitry,

I love your patch! Yet something to improve:

[auto build test ERROR on next-20220714]
[also build test ERROR on v5.19-rc6]
[cannot apply to drm-misc/drm-misc-next drm-intel/for-linux-next media-tree/master linus/master v5.19-rc6 v5.19-rc5 v5.19-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in]

base: 37b355fdaf31ee18bda9a93c2a438dc1cbf57ec9
config: x86_64-allmodconfig (
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
git remote add linux-review
git fetch --no-tags linux-review Dmitry-Osipenko/Move-all-drivers-to-a-common-dma-buf-locking-convention/20220715-085556
git checkout ed55f535b8492ef30d7e94aae5811c772403ab4f
# save the config file
mkdir build_dir && cp config build_dir/.config
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 where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_gem_ww.c:52:6: error: no previous prototype for 'i915_gem_ww_ctx_fini2' [-Werror=missing-prototypes]
52 | void i915_gem_ww_ctx_fini2(struct i915_gem_ww_ctx *ww)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

vim +/i915_gem_ww_ctx_fini2 +52 drivers/gpu/drm/i915/i915_gem_ww.c

> 52 void i915_gem_ww_ctx_fini2(struct i915_gem_ww_ctx *ww)
53 {
54 i915_gem_ww_ctx_unlock_all(ww);
55 WARN_ON(ww->contended);
56 }

0-DAY CI Kernel Test Service