[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210221122.0IGbnhLa-lkp@intel.com>
Date: Sat, 22 Oct 2022 11:15:55 +0800
From: kernel test robot <lkp@...el.com>
To: Oded Gabbay <ogabbay@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [ogabbay:accel 9/9] drivers/gpu/drm/drm_drv.c:1122:37: warning:
unused variable 'accel_stub_fops'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git accel
head: ab741984de51f780334f1c4ce2ee98ef81a8a28f
commit: ab741984de51f780334f1c4ce2ee98ef81a8a28f [9/9] Add CONFIG_ACCEL
config: arm-randconfig-r004-20221019
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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/ogabbay/linux.git/commit/?id=ab741984de51f780334f1c4ce2ee98ef81a8a28f
git remote add ogabbay https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git
git fetch --no-tags ogabbay accel
git checkout ab741984de51f780334f1c4ce2ee98ef81a8a28f
# 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 SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/drm_drv.c:1122:37: warning: unused variable 'accel_stub_fops' [-Wunused-const-variable]
static const struct file_operations accel_stub_fops = {
^
1 warning generated.
vim +/accel_stub_fops +1122 drivers/gpu/drm/drm_drv.c
1b7199fe984073 drivers/gpu/drm/drm_stub.c David Herrmann 2014-07-23 1121
39e251c7f78ef9 drivers/gpu/drm/drm_drv.c Oded Gabbay 2022-10-21 @1122 static const struct file_operations accel_stub_fops = {
39e251c7f78ef9 drivers/gpu/drm/drm_drv.c Oded Gabbay 2022-10-21 1123 .owner = THIS_MODULE,
39e251c7f78ef9 drivers/gpu/drm/drm_drv.c Oded Gabbay 2022-10-21 1124 .open = accel_stub_open,
39e251c7f78ef9 drivers/gpu/drm/drm_drv.c Oded Gabbay 2022-10-21 1125 .llseek = noop_llseek,
39e251c7f78ef9 drivers/gpu/drm/drm_drv.c Oded Gabbay 2022-10-21 1126 };
39e251c7f78ef9 drivers/gpu/drm/drm_drv.c Oded Gabbay 2022-10-21 1127
:::::: The code at line 1122 was first introduced by commit
:::::: 39e251c7f78ef9d4a4d3d92db1896a68dc3b3e9e handle drm_open
:::::: TO: Oded Gabbay <ogabbay@...nel.org>
:::::: CC: Oded Gabbay <ogabbay@...nel.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (154883 bytes)
Powered by blists - more mailing lists