[jlayton:ceph-netfs-llist 4/4] fs/ceph/addr.c:433:37: warning: unused variable 'subreq'

From: kernel test robot
Date: Thu Jun 09 2022 - 23:06:05 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-netfs-llist
head: 949c104f62d7b02839584a8cce853d4164f861ac
commit: 949c104f62d7b02839584a8cce853d4164f861ac [4/4] ceph: convert to netfs write helpers
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20220610/202206101021.BVwn2jkt-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=949c104f62d7b02839584a8cce853d4164f861ac
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton ceph-netfs-llist
git checkout 949c104f62d7b02839584a8cce853d4164f861ac
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/ceph/

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

All warnings (new ones prefixed by >>):

fs/ceph/addr.c: In function 'ceph_upload_to_server_worker':
>> fs/ceph/addr.c:433:37: warning: unused variable 'subreq' [-Wunused-variable]
433 | struct netfs_io_subrequest *subreq =
| ^~~~~~


vim +/subreq +433 fs/ceph/addr.c

430
431 static void ceph_upload_to_server_worker(struct work_struct *work)
432 {
> 433 struct netfs_io_subrequest *subreq =
434 container_of(work, struct netfs_io_subrequest, work);
435 }
436

--
0-DAY CI Kernel Test Service
https://01.org/lkp