[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108220211.l42yTEun-lkp@intel.com>
Date: Sun, 22 Aug 2021 02:41:31 +0800
From: kernel test robot <lkp@...el.com>
To: Alex Deucher <alexander.deucher@....com>
Cc: clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Dave Airlie <airlied@...hat.com>
Subject: drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:109:37: warning: unused
variable 'amdgpu_rap_debugfs_ops'
Hi Dave,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 002c0aef109067168ae68ee69b5ce67edc2e63c1
commit: 0c8d22fcae2f9590a07b000e1724f665820b77f7 Merge tag 'amd-drm-next-5.10-2020-09-03' of git://people.freedesktop.org/~agd5f/linux into drm-next
date: 12 months ago
config: arm64-randconfig-r036-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0c8d22fcae2f9590a07b000e1724f665820b77f7
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0c8d22fcae2f9590a07b000e1724f665820b77f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:109: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:41:34: warning: unused variable 'clocks' [-Wunused-const-variable]
static const struct cg_flag_name clocks[] = {
^
1 warning generated.
vim +/amdgpu_rap_debugfs_ops +109 drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c
a4322e1881bed80 Wenhui Sheng 2020-08-11 108
a4322e1881bed80 Wenhui Sheng 2020-08-11 @109 static const struct file_operations amdgpu_rap_debugfs_ops = {
a4322e1881bed80 Wenhui Sheng 2020-08-11 110 .owner = THIS_MODULE,
a4322e1881bed80 Wenhui Sheng 2020-08-11 111 .read = NULL,
a4322e1881bed80 Wenhui Sheng 2020-08-11 112 .write = amdgpu_rap_debugfs_write,
a4322e1881bed80 Wenhui Sheng 2020-08-11 113 .llseek = default_llseek
a4322e1881bed80 Wenhui Sheng 2020-08-11 114 };
a4322e1881bed80 Wenhui Sheng 2020-08-11 115
:::::: The code at line 109 was first introduced by commit
:::::: a4322e1881bed80ddb904482f0b2e948fa7fd47e drm/amdgpu: add debugfs interface for RAP test
:::::: TO: Wenhui Sheng <Wenhui.Sheng@....com>
:::::: CC: Alex Deucher <alexander.deucher@....com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (40397 bytes)
Powered by blists - more mailing lists