Re: [PATCH] f2fs: the name of a struct is wrong in a comment.

From: kernel test robot
Date: Tue Nov 07 2023 - 14:19:49 EST


Hi,

kernel test robot noticed the following build errors:

[auto build test ERROR on jaegeuk-f2fs/dev-test]
[also build test ERROR on jaegeuk-f2fs/dev linus/master v6.6 next-20231107]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/dslab-lzu-edu-cn/f2fs-the-name-of-a-struct-is-wrong-in-a-comment/20231106-201822
base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test
patch link: https://lore.kernel.org/r/20231106121418.3675-1-dslab%40lzu.edu.cn
patch subject: [PATCH] f2fs: the name of a struct is wrong in a comment.
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231108/202311080247.0hkA0mLH-lkp@xxxxxxxxx/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231108/202311080247.0hkA0mLH-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311080247.0hkA0mLH-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from fs/f2fs/dir.c:10:
>> include/linux/f2fs_fs.h:501:16: error: expected ']'
__u8 reserved[NAT_JOURNAL_RESERVED];
^
include/linux/f2fs_fs.h:474:38: note: expanded from macro 'NAT_JOURNAL_RESERVED'
sizeof(struct nat_journal_entry))SIT_JOURNA
^
include/linux/f2fs_fs.h:501:15: note: to match this '['
__u8 reserved[NAT_JOURNAL_RESERVED];
^
1 error generated.


vim +501 include/linux/f2fs_fs.h

dd31866b0d55c9 Jaegeuk Kim 2012-11-02 498
dd31866b0d55c9 Jaegeuk Kim 2012-11-02 499 struct nat_journal {
dd31866b0d55c9 Jaegeuk Kim 2012-11-02 500 struct nat_journal_entry entries[NAT_JOURNAL_ENTRIES];
dd31866b0d55c9 Jaegeuk Kim 2012-11-02 @501 __u8 reserved[NAT_JOURNAL_RESERVED];
dd31866b0d55c9 Jaegeuk Kim 2012-11-02 502 } __packed;
dd31866b0d55c9 Jaegeuk Kim 2012-11-02 503

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki