tree: git://anongit.freedesktop.org/drm/drm-tip drm-tip head: ceefc39c8abf37ff93eb36001f82e725756863c8 commit: e38294cfc29f789b541ecc08be2e578da746663c [8/10] Merge remote-tracking branch 'drm-intel/drm-intel-gt-next' into drm-tip config: x86_64-randconfig-a002-20220117 (https://download.01.org/0day-ci/archive/20220119/202201190210.q12RphMz-lkp@xxxxxxxxx/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c10cbb243cafc0cf42c3e922cb29183279444432) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add drm-tip git://anongit.freedesktop.org/drm/drm-tip git fetch --no-tags drm-tip drm-tip git checkout e38294cfc29f789b541ecc08be2e578da746663c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): In file included from <built-in>:4: >> drivers/gpu/drm/i915/i915_gem_evict.h:15:15: error: declaration of 'struct i915_gem_ww_ctx' will not be visible outside of this function [-Werror,-Wvisibility] struct i915_gem_ww_ctx *ww, ^ drivers/gpu/drm/i915/i915_gem_evict.h:21:14: error: declaration of 'struct i915_gem_ww_ctx' will not be visible outside of this function [-Werror,-Wvisibility] struct i915_gem_ww_ctx *ww, ^ drivers/gpu/drm/i915/i915_gem_evict.h:25:16: error: declaration of 'struct i915_gem_ww_ctx' will not be visible outside of this function [-Werror,-Wvisibility] struct i915_gem_ww_ctx *ww); ^ 3 errors generated. vim +15 drivers/gpu/drm/i915/i915_gem_evict.h 13 14 int __must_check i915_gem_evict_something(struct i915_address_space *vm, > 15 struct i915_gem_ww_ctx *ww, 16 u64 min_size, u64 alignment, 17 unsigned long color, 18 u64 start, u64 end, 19 unsigned flags); 20 int __must_check i915_gem_evict_for_node(struct i915_address_space *vm, 21 struct i915_gem_ww_ctx *ww, 22 struct drm_mm_node *node, 23 unsigned int flags); 24 int i915_gem_evict_vm(struct i915_address_space *vm, 25 struct i915_gem_ww_ctx *ww); 26 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx