tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git 
for-next.radical6m
head:   ade69cc95ecf986b020e19bb73214d45eeda8fd1
commit: 005282b7d34999f81185091c78b4d90a1920cb6c [19/27] gfs2: Introduce new 
GL_ST_XMOTE_DENIED state
config: parisc-randconfig-r006-20210318 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
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
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?id=005282b7d34999f81185091c78b4d90a1920cb6c
        git remote add gfs2 
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
        git fetch --no-tags gfs2 for-next.radical6m
        git checkout 005282b7d34999f81185091c78b4d90a1920cb6c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   fs/gfs2/glock.c: In function 'state_finish_xmote':
>> fs/gfs2/glock.c:583:22: warning: variable 'gh' set but not used 
>> [-Wunused-but-set-variable]
     583 |  struct gfs2_holder *gh;
         |                      ^~


vim +/gh +583 fs/gfs2/glock.c

   573  
   574  /**
   575   * state_finish_xmote - The DLM has replied to one of our lock requests
   576   * @gl: The glock
   577   *
   578   */
   579  
   580  static void state_finish_xmote(struct gfs2_glock *gl)
   581  {
   582          const struct gfs2_glock_operations *glops = gl->gl_ops;
 > 583          struct gfs2_holder *gh;
   584          unsigned int state = gl->gl_req & LM_OUT_ST_MASK;
   585          int rv;
   586  
   587          trace_gfs2_glock_state_change(gl, state);
   588          state_change(gl, state);
   589  
   590          /* Demote to UN request arrived during demote to SH or DF */
   591          if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) &&
   592              state != LM_ST_UNLOCKED && gl->gl_demote_state == 
LM_ST_UNLOCKED)
   593                  gl->gl_target = LM_ST_UNLOCKED;
   594  
   595          /* Check for state != intended state */
   596          if (unlikely(state != gl->gl_target)) {
   597                  next_state(gl, GL_ST_XMOTE_DENIED);
   598                  return;
   599          }
   600  
   601          /* Fast path - we got what we asked for */
   602          if (test_and_clear_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags))
   603                  gfs2_demote_wake(gl);
   604          if (state != LM_ST_UNLOCKED) {
   605                  if (glops->go_xmote_bh) {
   606                          gh = find_first_waiter(gl);
   607                          spin_unlock(&gl->gl_lockref.lock);
   608                          rv = glops->go_xmote_bh(gl);
   609                          spin_lock(&gl->gl_lockref.lock);
   610                          if (rv) {
   611                                  do_error(gl, rv);
   612                                  goto out;
   613                          }
   614                  }
   615                  rv = do_promote(gl);
   616                  if (rv == 2)
   617                          return;
   618          }
   619  out:
   620          clear_bit(GLF_LOCK, &gl->gl_flags);
   621  }
   622  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

Reply via email to