[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210220941.DkHYQzBQ-lkp@intel.com>
Date: Sat, 22 Oct 2022 10:05:04 +0800
From: kernel test robot <lkp@...el.com>
To: Oded Gabbay <ogabbay@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [ogabbay:accel 9/9] drivers/gpu/drm/drm_drv.c:1122:37: warning:
'accel_stub_fops' defined but not used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git accel
head: ab741984de51f780334f1c4ce2ee98ef81a8a28f
commit: ab741984de51f780334f1c4ce2ee98ef81a8a28f [9/9] Add CONFIG_ACCEL
config: x86_64-rhel-8.3-func
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# 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
make W=1 O=build_dir ARCH=x86_64 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: 'accel_stub_fops' defined but not used [-Wunused-const-variable=]
1122 | static const struct file_operations accel_stub_fops = {
| ^~~~~~~~~~~~~~~
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" (170443 bytes)
Powered by blists - more mailing lists