drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:110:37: warning: unused variable 'amdgpu_rap_debugfs_ops'

From: kernel test robot
Date: Sun Feb 19 2023 - 14:09:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 925cf0457d7e62ce08878ffb789189ac08ca8677
commit: df99e7bbbec3180693b3d932a9cbc88346e2a30e ARM: omap1: use pci_remap_iospace() for omap_cf
date: 10 months ago
config: arm-randconfig-r033-20230220 (https://download.01.org/0day-ci/archive/20230220/202302200339.Whql7Emr-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db89896bbbd2251fff457699635acbbedeead27f)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=df99e7bbbec3180693b3d932a9cbc88346e2a30e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout df99e7bbbec3180693b3d932a9cbc88346e2a30e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ drivers/gpu/drm/amd/pm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202302200339.Whql7Emr-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:110:37: warning: unused variable 'amdgpu_rap_debugfs_ops' [-Wunused-const-variable]
static const struct file_operations amdgpu_rap_debugfs_ops = {
^
1 warning generated.
--
>> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:38:34: warning: unused variable 'clocks' [-Wunused-const-variable]
static const struct cg_flag_name clocks[] = {
^
1 warning generated.


vim +/amdgpu_rap_debugfs_ops +110 drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c

a4322e1881bed8 Wenhui Sheng 2020-08-11 109
a4322e1881bed8 Wenhui Sheng 2020-08-11 @110 static const struct file_operations amdgpu_rap_debugfs_ops = {
a4322e1881bed8 Wenhui Sheng 2020-08-11 111 .owner = THIS_MODULE,
a4322e1881bed8 Wenhui Sheng 2020-08-11 112 .read = NULL,
a4322e1881bed8 Wenhui Sheng 2020-08-11 113 .write = amdgpu_rap_debugfs_write,
a4322e1881bed8 Wenhui Sheng 2020-08-11 114 .llseek = default_llseek
a4322e1881bed8 Wenhui Sheng 2020-08-11 115 };
a4322e1881bed8 Wenhui Sheng 2020-08-11 116

:::::: The code at line 110 was first introduced by commit
:::::: a4322e1881bed80ddb904482f0b2e948fa7fd47e drm/amdgpu: add debugfs interface for RAP test

:::::: TO: Wenhui Sheng <Wenhui.Sheng@xxxxxxx>
:::::: CC: Alex Deucher <alexander.deucher@xxxxxxx>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests