drivers/gpu/drm/msm/msm_gem_shrinker.c:17:6: sparse: sparse: symbol 'enable_eviction' was not declared. Should it be static?

From: kernel test robot
Date: Wed Nov 17 2021 - 09:06:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ab774587903771821b59471cc723bba6d893942
commit: de99e6479885dfa3f64a9511a6477c2b7899e53f Merge tag 'drm-msm-next-2021-10-26' of https://gitlab.freedesktop.org/drm/msm into drm-next
date: 3 weeks ago
config: alpha-randconfig-s031-20211117 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=de99e6479885dfa3f64a9511a6477c2b7899e53f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout de99e6479885dfa3f64a9511a6477c2b7899e53f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash drivers/gpu/drm/msm/

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


sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/msm/msm_gem_shrinker.c:17:6: sparse: sparse: symbol 'enable_eviction' was not declared. Should it be static?

vim +/enable_eviction +17 drivers/gpu/drm/msm/msm_gem_shrinker.c

68209390f116034 Rob Clark 2016-05-17 13
63f17ef834284d9 Rob Clark 2021-04-05 14 /* Default disabled for now until it has some more testing on the different
63f17ef834284d9 Rob Clark 2021-04-05 15 * iommu combinations that can be paired with the driver:
63f17ef834284d9 Rob Clark 2021-04-05 16 */
63f17ef834284d9 Rob Clark 2021-04-05 @17 bool enable_eviction = false;
63f17ef834284d9 Rob Clark 2021-04-05 18 MODULE_PARM_DESC(enable_eviction, "Enable swappable GEM buffers");
63f17ef834284d9 Rob Clark 2021-04-05 19 module_param(enable_eviction, bool, 0600);
63f17ef834284d9 Rob Clark 2021-04-05 20

:::::: The code at line 17 was first introduced by commit
:::::: 63f17ef834284d9a1fa72b548a86fee1ccd01a45 drm/msm: Support evicting GEM objects to swap

:::::: TO: Rob Clark <robdclark@xxxxxxxxxxxx>
:::::: CC: Rob Clark <robdclark@xxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip