tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git 
for-next.radical8h
head:   3c95769f71be56000ea9bd18703ed6cd5f8f5181
commit: 9aafdeff8c090ce2912cf63a77b5c1bead745549 [13/30] gfs2: eliminate gl_mode
config: x86_64-randconfig-a004-20210428 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 
87fc97169e7901dfe56ca0da0d92da0c02d2ef48)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?id=9aafdeff8c090ce2912cf63a77b5c1bead745549
        git remote add gfs2 
https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
        git fetch --no-tags gfs2 for-next.radical8h
        git checkout 9aafdeff8c090ce2912cf63a77b5c1bead745549
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

   In file included from fs/gfs2/acl.c:21:
>> fs/gfs2/glock.h:163:15: warning: 'const' type qualifier on return type has 
>> no effect [-Wignored-qualifiers]
   static inline const int gl_mode(const struct gfs2_glock *gl)
                 ^~~~~~
   1 warning generated.
--
   In file included from fs/gfs2/bmap.c:19:
>> fs/gfs2/glock.h:163:15: warning: 'const' type qualifier on return type has 
>> no effect [-Wignored-qualifiers]
   static inline const int gl_mode(const struct gfs2_glock *gl)
                 ^~~~~~
   In file included from fs/gfs2/bmap.c:30:
>> fs/gfs2/trace_gfs2.h:65:15: warning: 'const' type qualifier on return type 
>> has no effect [-Wignored-qualifiers]
   static inline const u8 glock_trace_mode(const unsigned int mode)
                 ^~~~~~
   2 warnings generated.


vim +/const +163 fs/gfs2/glock.h

   162  
 > 163  static inline const int gl_mode(const struct gfs2_glock *gl)
   164  {
   165          return gl->gl_reply & LM_OUT_ST_MASK;
   166  }
   167  

---
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