Re: [PATCH] xfs: remove XFS_ITEM_RELEASE_WHEN_COMMITTED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dave,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on xfs-linux/for-next]
[also build test ERROR on v5.12 next-20210504]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Dave-Chinner/xfs-remove-XFS_ITEM_RELEASE_WHEN_COMMITTED/20210504-123005
base:   https://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git for-next
config: x86_64-randconfig-a002-20210504 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8f5a2a5836cc8e4c1def2bdeb022e7b496623439)
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://github.com/0day-ci/linux/commit/49245f53b5151023638e214a6f0817452b67c887
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Dave-Chinner/xfs-remove-XFS_ITEM_RELEASE_WHEN_COMMITTED/20210504-123005
        git checkout 49245f53b5151023638e214a6f0817452b67c887
        # 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 <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   In file included from fs/xfs/xfs_trace.c:22:
>> fs/xfs/xfs_trans.h:104:65: error: expected ';' after top level declarator
   xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
                                                                   ^
                                                                   ;
   1 error generated.
--
   In file included from fs/xfs/xfs_file.c:14:
>> fs/xfs/xfs_trans.h:104:65: error: expected ';' after top level declarator
   xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
                                                                   ^
                                                                   ;
   In file included from fs/xfs/xfs_file.c:30:
   include/linux/mman.h:156:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_SYNC,       VM_SYNC      ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:133:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from fs/xfs/xfs_bmap_item.c:16:
>> fs/xfs/xfs_trans.h:104:65: error: expected ';' after top level declarator
   xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
                                                                   ^
                                                                   ;
>> fs/xfs/xfs_bmap_item.c:209:3: error: field designator 'iop_comitted' does not refer to any field in type 'const struct xfs_item_ops'; did you mean 'iop_committed'?
           .iop_comitted   = xfs_log_item_committed_done,
            ^~~~~~~~~~~~
            iop_committed
   fs/xfs/xfs_trans.h:73:14: note: 'iop_committed' declared here
           xfs_lsn_t (*iop_committed)(struct xfs_log_item *, xfs_lsn_t);
                       ^
>> fs/xfs/xfs_bmap_item.c:209:18: error: incompatible function pointer types initializing 'xfs_lsn_t (*)(struct xfs_log_item *, xfs_lsn_t)' (aka 'long long (*)(struct xfs_log_item *, long long)') with an expression of type 'xfs_lsn_t (struct xfs_log_item *)' (aka 'long long (struct xfs_log_item *)') [-Werror,-Wincompatible-function-pointer-types]
           .iop_comitted   = xfs_log_item_committed_done,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.
--
   In file included from fs/xfs/xfs_extfree_item.c:15:
>> fs/xfs/xfs_trans.h:104:65: error: expected ';' after top level declarator
   xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
                                                                   ^
                                                                   ;
>> fs/xfs/xfs_extfree_item.c:313:3: error: field designator 'iop_comitted' does not refer to any field in type 'const struct xfs_item_ops'; did you mean 'iop_committed'?
           .iop_comitted   = xfs_log_item_committed_done,
            ^~~~~~~~~~~~
            iop_committed
   fs/xfs/xfs_trans.h:73:14: note: 'iop_committed' declared here
           xfs_lsn_t (*iop_committed)(struct xfs_log_item *, xfs_lsn_t);
                       ^
>> fs/xfs/xfs_extfree_item.c:313:18: error: incompatible function pointer types initializing 'xfs_lsn_t (*)(struct xfs_log_item *, xfs_lsn_t)' (aka 'long long (*)(struct xfs_log_item *, long long)') with an expression of type 'xfs_lsn_t (struct xfs_log_item *)' (aka 'long long (struct xfs_log_item *)') [-Werror,-Wincompatible-function-pointer-types]
           .iop_comitted   = xfs_log_item_committed_done,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.
--
   In file included from fs/xfs/xfs_icreate_item.c:14:
>> fs/xfs/xfs_trans.h:104:65: error: expected ';' after top level declarator
   xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
                                                                   ^
                                                                   ;
>> fs/xfs/xfs_icreate_item.c:73:3: error: field designator 'iop_comitted' does not refer to any field in type 'const struct xfs_item_ops'; did you mean 'iop_committed'?
           .iop_comitted   = xfs_log_item_committed_done,
            ^~~~~~~~~~~~
            iop_committed
   fs/xfs/xfs_trans.h:73:14: note: 'iop_committed' declared here
           xfs_lsn_t (*iop_committed)(struct xfs_log_item *, xfs_lsn_t);
                       ^
>> fs/xfs/xfs_icreate_item.c:73:18: error: incompatible function pointer types initializing 'xfs_lsn_t (*)(struct xfs_log_item *, xfs_lsn_t)' (aka 'long long (*)(struct xfs_log_item *, long long)') with an expression of type 'xfs_lsn_t (struct xfs_log_item *)' (aka 'long long (struct xfs_log_item *)') [-Werror,-Wincompatible-function-pointer-types]
           .iop_comitted   = xfs_log_item_committed_done,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.
--
   In file included from fs/xfs/xfs_refcount_item.c:15:
>> fs/xfs/xfs_trans.h:104:65: error: expected ';' after top level declarator
   xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
                                                                   ^
                                                                   ;
>> fs/xfs/xfs_refcount_item.c:214:3: error: field designator 'iop_comitted' does not refer to any field in type 'const struct xfs_item_ops'; did you mean 'iop_committed'?
           .iop_comitted   = xfs_log_item_committed_done,
            ^~~~~~~~~~~~
            iop_committed
   fs/xfs/xfs_trans.h:73:14: note: 'iop_committed' declared here
           xfs_lsn_t (*iop_committed)(struct xfs_log_item *, xfs_lsn_t);
                       ^
>> fs/xfs/xfs_refcount_item.c:214:18: error: incompatible function pointer types initializing 'xfs_lsn_t (*)(struct xfs_log_item *, xfs_lsn_t)' (aka 'long long (*)(struct xfs_log_item *, long long)') with an expression of type 'xfs_lsn_t (struct xfs_log_item *)' (aka 'long long (struct xfs_log_item *)') [-Werror,-Wincompatible-function-pointer-types]
           .iop_comitted   = xfs_log_item_committed_done,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.
--
   In file included from fs/xfs/xfs_rmap_item.c:15:
>> fs/xfs/xfs_trans.h:104:65: error: expected ';' after top level declarator
   xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
                                                                   ^
                                                                   ;
>> fs/xfs/xfs_rmap_item.c:237:3: error: field designator 'iop_comitted' does not refer to any field in type 'const struct xfs_item_ops'; did you mean 'iop_committed'?
           .iop_comitted   = xfs_log_item_committed_done,
            ^~~~~~~~~~~~
            iop_committed
   fs/xfs/xfs_trans.h:73:14: note: 'iop_committed' declared here
           xfs_lsn_t (*iop_committed)(struct xfs_log_item *, xfs_lsn_t);
                       ^
>> fs/xfs/xfs_rmap_item.c:237:18: error: incompatible function pointer types initializing 'xfs_lsn_t (*)(struct xfs_log_item *, xfs_lsn_t)' (aka 'long long (*)(struct xfs_log_item *, long long)') with an expression of type 'xfs_lsn_t (struct xfs_log_item *)' (aka 'long long (struct xfs_log_item *)') [-Werror,-Wincompatible-function-pointer-types]
           .iop_comitted   = xfs_log_item_committed_done,
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.


vim +104 fs/xfs/xfs_trans.h

    96	
    97	void	xfs_log_item_init(struct xfs_mount *mp, struct xfs_log_item *item,
    98				  int type, const struct xfs_item_ops *ops);
    99	
   100	/*
   101	 * Generic ->iop_committed callback to indicate that the log item should not be
   102	 * referenced by the caller once the callback returns.
   103	 */
 > 104	xfs_lsn_t xfs_log_item_committed_done(struct xfs_log_item *item)
   105	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux