From: kernel test robot <lkp@intel.com>
To: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
Subject: [chao:wip 19/20] fs/f2fs/segment.c:2891:4: error: call to undeclared function 'reset_curseg_fields'; ISO C99 and later do not support implicit function declarations
Date: Tue, 17 Dec 2024 04:21:27 +0800 [thread overview]
Message-ID: <202412170421.kaVgRXyk-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git wip
head: 99c1b937f7efd14347261f99e40036e481c6cbc0
commit: adf3b6b31460b800b74602a535414e50d1e761c5 [19/20] f2fs: fix to avoid panic once fallocation fails for pinfile
config: x86_64-buildonly-randconfig-004-20241217 (https://download.01.org/0day-ci/archive/20241217/202412170421.kaVgRXyk-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241217/202412170421.kaVgRXyk-lkp@intel.com/reproduce)
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/202412170421.kaVgRXyk-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/f2fs/segment.c:9:
In file included from include/linux/f2fs_fs.h:11:
In file included from include/linux/pagemap.h:8:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> fs/f2fs/segment.c:2891:4: error: call to undeclared function 'reset_curseg_fields'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2891 | reset_curseg_fields(curseg);
| ^
fs/f2fs/segment.c:3671:13: error: static declaration of 'reset_curseg_fields' follows non-static declaration
3671 | static void reset_curseg_fields(struct curseg_info *curseg)
| ^
fs/f2fs/segment.c:2891:4: note: previous implicit declaration is here
2891 | reset_curseg_fields(curseg);
| ^
1 warning and 2 errors generated.
vim +/reset_curseg_fields +2891 fs/f2fs/segment.c
2872
2873 /*
2874 * Allocate a current working segment.
2875 * This function always allocates a free segment in LFS manner.
2876 */
2877 static int new_curseg(struct f2fs_sb_info *sbi, int type, bool new_sec)
2878 {
2879 struct curseg_info *curseg = CURSEG_I(sbi, type);
2880 unsigned int segno = curseg->segno;
2881 bool pinning = type == CURSEG_COLD_DATA_PINNED;
2882 int ret;
2883
2884 if (curseg->inited)
2885 write_sum_page(sbi, curseg->sum_blk, GET_SUM_BLOCK(sbi, segno));
2886
2887 segno = __get_next_segno(sbi, type);
2888 ret = get_new_segment(sbi, &segno, new_sec, pinning);
2889 if (ret) {
2890 if (ret == -ENOSPC)
> 2891 reset_curseg_fields(curseg);
2892 return ret;
2893 }
2894
2895 curseg->next_segno = segno;
2896 reset_curseg(sbi, type, 1);
2897 curseg->alloc_type = LFS;
2898 if (F2FS_OPTION(sbi).fs_mode == FS_MODE_FRAGMENT_BLK)
2899 curseg->fragment_remained_chunk =
2900 get_random_u32_inclusive(1, sbi->max_fragment_chunk);
2901 return 0;
2902 }
2903
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-12-16 20:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202412170421.kaVgRXyk-lkp@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yuchao0@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox