All of lore.kernel.org
 help / color / mirror / Atom feed
* [xiang-linux:xfs/shrink_lastag2 2/4] fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
@ 2021-01-08 21:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-08 21:41 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 12598 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git xfs/shrink_lastag2
head:   0b239c1f5f4657a04efab328f1da6f1d66fe5373
commit: 9e61f37e0460210278949e6c3973c6491ee4661c [2/4] xfs: get rid of xfs_growfs_{data,log}_t
config: ia64-randconfig-r022-20210108 (attached as .config)
compiler: ia64-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/xiang/linux.git/commit/?id=9e61f37e0460210278949e6c3973c6491ee4661c
        git remote add xiang-linux https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git
        git fetch --no-tags xiang-linux xfs/shrink_lastag2
        git checkout 9e61f37e0460210278949e6c3973c6491ee4661c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All warnings (new ones prefixed by >>):

   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_trace.c:6:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_trace.c:6:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
--
   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/libxfs/xfs_bmap.c:6:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/libxfs/xfs_bmap.c:6:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
   fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_del_extent_real':
   fs/xfs/libxfs/xfs_bmap.c:5242:58: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
    5242 |   xfs_trans_mod_dquot_byino(tp, ip, qfield, (long)-nblks);
         |                                                          ^
--
   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_iops.c:6:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_iops.c:6:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
   fs/xfs/xfs_iops.c: In function 'xfs_setattr_nonsize':
   fs/xfs/xfs_iops.c:662:39: warning: variable 'olddquot2' set but not used [-Wunused-but-set-variable]
     662 |  struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
         |                                       ^~~~~~~~~
   fs/xfs/xfs_iops.c:662:20: warning: variable 'olddquot1' set but not used [-Wunused-but-set-variable]
     662 |  struct xfs_dquot *olddquot1 = NULL, *olddquot2 = NULL;
         |                    ^~~~~~~~~
--
   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_iwalk.c:6:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_iwalk.c:6:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
   fs/xfs/xfs_iwalk.c: In function 'xfs_iwalk_run_callbacks':
   fs/xfs/xfs_iwalk.c:355:31: warning: variable 'irec' set but not used [-Wunused-but-set-variable]
     355 |  struct xfs_inobt_rec_incore *irec;
         |                               ^~~~
--
   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_super.c:7:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_super.c:7:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
   fs/xfs/xfs_super.c: In function 'xfs_fs_statfs':
   fs/xfs/xfs_super.c:835:28: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
     835 |   xfs_qm_statvfs(ip, statp);
         |                            ^
--
   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_trans.c:7:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_trans.c:7:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
   fs/xfs/xfs_trans.c: In function 'xfs_trans_unreserve_and_mod_sb':
   fs/xfs/xfs_trans.c:576:8: warning: variable 'error' set but not used [-Wunused-but-set-variable]
     576 |  int   error;
         |        ^~~~~
--
   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_xattr.c:7:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_xattr.c:7:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
   In function '__xfs_xattr_put_listent',
       inlined from 'xfs_xattr_put_listent' at fs/xfs/xfs_xattr.c:180:2:
   fs/xfs/xfs_xattr.c:118:2: warning: 'strncpy' output may be truncated copying between 5 and 9 bytes from a string of length 9 [-Wstringop-truncation]
     118 |  strncpy(offset, prefix, prefix_len);
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from arch/ia64/include/asm/pgtable.h:154,
                    from include/linux/pgtable.h:6,
                    from include/linux/mm.h:33,
                    from fs/xfs/kmem.h:11,
                    from fs/xfs/xfs_linux.h:24,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_ioctl.c:6:
   arch/ia64/include/asm/mmu_context.h: In function 'reload_context':
   arch/ia64/include/asm/mmu_context.h:137:41: warning: variable 'old_rr4' set but not used [-Wunused-but-set-variable]
     137 |  unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4;
         |                                         ^~~~~~~
   In file included from fs/xfs/xfs_linux.h:72,
                    from fs/xfs/xfs.h:22,
                    from fs/xfs/xfs_ioctl.c:6:
   fs/xfs/libxfs/xfs_fs.h: At top level:
>> fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration
     311 | };
         | ^
   fs/xfs/libxfs/xfs_fs.h:316:1: warning: useless storage class specifier in empty declaration
     316 | };
         | ^
   fs/xfs/xfs_ioctl.c: In function 'xfs_ioctl_setattr':
   fs/xfs/xfs_ioctl.c:1438:20: warning: variable 'olddquot' set but not used [-Wunused-but-set-variable]
    1438 |  struct xfs_dquot *olddquot = NULL;
         |                    ^~~~~~~~


vim +311 fs/xfs/libxfs/xfs_fs.h

   304	
   305	/*
   306	 * Structures for XFS_IOC_FSGROWFSDATA, XFS_IOC_FSGROWFSLOG & XFS_IOC_FSGROWFSRT
   307	 */
   308	typedef struct xfs_growfs_data {
   309		__u64		newblocks;	/* new data subvol size, fsblocks */
   310		__u32		imaxpct;	/* new inode space percentage limit */
 > 311	};
   312	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31418 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-08 21:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-08 21:41 [xiang-linux:xfs/shrink_lastag2 2/4] fs/xfs/libxfs/xfs_fs.h:311:1: warning: useless storage class specifier in empty declaration kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.