linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: kbuild-all@lists.01.org,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>,
	linux-kernel@vger.kernel.org
Subject: [ammarfaizi2-block:dhowells/linux-fs/netfs-linked-list 53/57] fs/ceph/inode.c:453:33: warning: unused variable 'ctx'
Date: Sat, 11 Jun 2022 06:23:41 +0800	[thread overview]
Message-ID: <202206110629.olgNuQ6q-lkp@intel.com> (raw)

tree:   https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/netfs-linked-list
head:   c19d336b7f0c53bd31e73f6d7d6c1524f0df55b8
commit: 61ba76d79797856f64673f37c08bdfb79df31f21 [53/57] afs: Use the netfs write helpers
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20220611/202206110629.olgNuQ6q-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/61ba76d79797856f64673f37c08bdfb79df31f21
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/netfs-linked-list
        git checkout 61ba76d79797856f64673f37c08bdfb79df31f21
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

   fs/ceph/inode.c: In function 'ceph_alloc_inode':
>> fs/ceph/inode.c:453:33: warning: unused variable 'ctx' [-Wunused-variable]
     453 |         struct netfs_i_context *ctx;
         |                                 ^~~


vim +/ctx +453 fs/ceph/inode.c

   447	
   448	/*
   449	 * initialize a newly allocated inode.
   450	 */
   451	struct inode *ceph_alloc_inode(struct super_block *sb)
   452	{
 > 453		struct netfs_i_context *ctx;
   454		struct ceph_inode_info *ci;
   455		int i;
   456	
   457		ci = alloc_inode_sb(sb, ceph_inode_cachep, GFP_NOFS);
   458		if (!ci)
   459			return NULL;
   460	
   461		dout("alloc_inode %p\n", &ci->netfs.inode);
   462	
   463		/* Set parameters for the netfs library */
   464		netfs_inode_init(&ci->netfs.inode, &ceph_netfs_ops);
   465		ci->netfs.min_bshift = ilog2(0x10000);
   466		ci->netfs.obj_bshift = ilog2(0x40000);
   467	
   468		spin_lock_init(&ci->i_ceph_lock);
   469	
   470		ci->i_version = 0;
   471		ci->i_inline_version = 0;
   472		ci->i_time_warp_seq = 0;
   473		ci->i_ceph_flags = 0;
   474		atomic64_set(&ci->i_ordered_count, 1);
   475		atomic64_set(&ci->i_release_count, 1);
   476		atomic64_set(&ci->i_complete_seq[0], 0);
   477		atomic64_set(&ci->i_complete_seq[1], 0);
   478		ci->i_symlink = NULL;
   479	
   480		ci->i_max_bytes = 0;
   481		ci->i_max_files = 0;
   482	
   483		memset(&ci->i_dir_layout, 0, sizeof(ci->i_dir_layout));
   484		memset(&ci->i_cached_layout, 0, sizeof(ci->i_cached_layout));
   485		RCU_INIT_POINTER(ci->i_layout.pool_ns, NULL);
   486	
   487		ci->i_fragtree = RB_ROOT;
   488		mutex_init(&ci->i_fragtree_mutex);
   489	
   490		ci->i_xattrs.blob = NULL;
   491		ci->i_xattrs.prealloc_blob = NULL;
   492		ci->i_xattrs.dirty = false;
   493		ci->i_xattrs.index = RB_ROOT;
   494		ci->i_xattrs.count = 0;
   495		ci->i_xattrs.names_size = 0;
   496		ci->i_xattrs.vals_size = 0;
   497		ci->i_xattrs.version = 0;
   498		ci->i_xattrs.index_version = 0;
   499	
   500		ci->i_caps = RB_ROOT;
   501		ci->i_auth_cap = NULL;
   502		ci->i_dirty_caps = 0;
   503		ci->i_flushing_caps = 0;
   504		INIT_LIST_HEAD(&ci->i_dirty_item);
   505		INIT_LIST_HEAD(&ci->i_flushing_item);
   506		ci->i_prealloc_cap_flush = NULL;
   507		INIT_LIST_HEAD(&ci->i_cap_flush_list);
   508		init_waitqueue_head(&ci->i_cap_wq);
   509		ci->i_hold_caps_max = 0;
   510		INIT_LIST_HEAD(&ci->i_cap_delay_list);
   511		INIT_LIST_HEAD(&ci->i_cap_snaps);
   512		ci->i_head_snapc = NULL;
   513		ci->i_snap_caps = 0;
   514	
   515		ci->i_last_rd = ci->i_last_wr = jiffies - 3600 * HZ;
   516		for (i = 0; i < CEPH_FILE_MODE_BITS; i++)
   517			ci->i_nr_by_mode[i] = 0;
   518	
   519		mutex_init(&ci->i_truncate_mutex);
   520		ci->i_truncate_seq = 0;
   521		ci->i_truncate_size = 0;
   522		ci->i_truncate_pending = 0;
   523	
   524		ci->i_max_size = 0;
   525		ci->i_reported_size = 0;
   526		ci->i_wanted_max_size = 0;
   527		ci->i_requested_max_size = 0;
   528	
   529		ci->i_pin_ref = 0;
   530		ci->i_rd_ref = 0;
   531		ci->i_rdcache_ref = 0;
   532		ci->i_wr_ref = 0;
   533		ci->i_wb_ref = 0;
   534		ci->i_fx_ref = 0;
   535		ci->i_wrbuffer_ref = 0;
   536		ci->i_wrbuffer_ref_head = 0;
   537		atomic_set(&ci->i_filelock_ref, 0);
   538		atomic_set(&ci->i_shared_gen, 1);
   539		ci->i_rdcache_gen = 0;
   540		ci->i_rdcache_revoking = 0;
   541	
   542		INIT_LIST_HEAD(&ci->i_unsafe_dirops);
   543		INIT_LIST_HEAD(&ci->i_unsafe_iops);
   544		spin_lock_init(&ci->i_unsafe_lock);
   545	
   546		ci->i_snap_realm = NULL;
   547		INIT_LIST_HEAD(&ci->i_snap_realm_item);
   548		INIT_LIST_HEAD(&ci->i_snap_flush_item);
   549	
   550		INIT_WORK(&ci->i_work, ceph_inode_work);
   551		ci->i_work_mask = 0;
   552		memset(&ci->i_btime, '\0', sizeof(ci->i_btime));
   553		return &ci->netfs.inode;
   554	}
   555	

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

                 reply	other threads:[~2022-06-10 22:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202206110629.olgNuQ6q-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dhowells@redhat.com \
    --cc=gwml@vger.gnuweeb.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).