[openeuler:OLK-6.6 3508/3508] fs/xfs/libxfs/xfs_alloc.c:102:1: warning: no previous prototype for function 'xfs_ag_fixup_aside'
Hi yangerkun, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 5930fa3740c518a9f6ba688fd0c1873d6f3adbce commit: 8c6e9756375dff2e96d3b598992b2f0e8b3682ee [3508/3508] xfs: fix xfs shutdown since we reserve more blocks in agfl fixup config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251211/202512111045.b5aNBn0b-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 4125e73cdc6188cca4c1c72b72e2b2d85c157483) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512111045.b5aNBn0b-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512111045.b5aNBn0b-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from <built-in>:3: In file included from ././include/linux/compiler_types.h:150: ./include/linux/compiler-clang.h:33:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 33 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:367:9: note: previous definition is here 367 | #define __SANITIZE_ADDRESS__ 1 | ^ In file included from fs/xfs/libxfs/xfs_alloc.c:6: In file included from ./fs/xfs/xfs.h:22: In file included from ./fs/xfs/xfs_linux.h:24: In file included from ./fs/xfs/kmem.h:11: In file included from ./include/linux/mm.h:2181: ./include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ ./include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ./include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~
fs/xfs/libxfs/xfs_alloc.c:102:1: warning: no previous prototype for function 'xfs_ag_fixup_aside' [-Wmissing-prototypes] 102 | xfs_ag_fixup_aside( | ^ fs/xfs/libxfs/xfs_alloc.c:101:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 101 | xfs_extlen_t | ^ | static 7 warnings generated.
vim +/xfs_ag_fixup_aside +102 fs/xfs/libxfs/xfs_alloc.c 94 95 /* 96 * Twice fixup for the same ag may happen within exact one tp, and the consume 97 * of agfl after first fixup may trigger second fixup's failure, then xfs will 98 * shutdown. To avoid that, we reserve blocks which can satisfy the second 99 * fixup. 100 */ 101 xfs_extlen_t
102 xfs_ag_fixup_aside( 103 struct xfs_mount *mp) 104 { 105 xfs_extlen_t ret; 106 107 ret = 2 * mp->m_alloc_maxlevels; 108 if (xfs_has_rmapbt(mp)) 109 ret += mp->m_rmap_maxlevels; 110 111 return ret; 112 } 113
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot