drivers/gpu/drm/i915/i915_active.c:123:20: error: unused function 'debug_active_fini'

From: kernel test robot
Date: Sat Jun 20 2020 - 13:02:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4333a9b0b67bb4e8bcd91bdd80da80b0ec151162
commit: 9f4069b055d1508c833115df7493b6e0001e5c9b drm/i915: re-disable -Wframe-address
date: 8 weeks ago
config: x86_64-randconfig-r031-20200619 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 63700971ac9cdf198faa4a3a7c226fa579e49206)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 9f4069b055d1508c833115df7493b6e0001e5c9b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

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

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/i915/i915_active.c:123:20: error: unused function 'debug_active_fini' [-Werror,-Wunused-function]
static inline void debug_active_fini(struct i915_active *ref) { }
^
1 error generated.

vim +/debug_active_fini +123 drivers/gpu/drm/i915/i915_active.c

5361db1a33c7e2 Chris Wilson 2019-06-21 119
5361db1a33c7e2 Chris Wilson 2019-06-21 120 static inline void debug_active_init(struct i915_active *ref) { }
5361db1a33c7e2 Chris Wilson 2019-06-21 121 static inline void debug_active_activate(struct i915_active *ref) { }
5361db1a33c7e2 Chris Wilson 2019-06-21 122 static inline void debug_active_deactivate(struct i915_active *ref) { }
5361db1a33c7e2 Chris Wilson 2019-06-21 @123 static inline void debug_active_fini(struct i915_active *ref) { }
5361db1a33c7e2 Chris Wilson 2019-06-21 124 static inline void debug_active_assert(struct i915_active *ref) { }
5361db1a33c7e2 Chris Wilson 2019-06-21 125

:::::: The code at line 123 was first introduced by commit
:::::: 5361db1a33c7e2d58af7df045d4d3ddd4c87ab56 drm/i915: Track i915_active using debugobjects

:::::: TO: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
:::::: CC: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip