From: kernel test robot <lkp@intel.com>
To: Kelvin Zhang <zhangxp1998@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, Chao Yu <chao@kernel.org>
Subject: [chao:feature/subpage 1/10] include/linux/f2fs_fs.h:431:31: error: flexible array member in a struct with no named members
Date: Sun, 30 Aug 2026 16:09:32 +0800 [thread overview]
Message-ID: <202608301649.G22k4ucE-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git feature/subpage
head: 3a537197e7b9327a386b4c5deab273a387072d1f
commit: c2b3b99e814a6c70d1498fbd92d0d459901fc876 [1/10] f2fs: describe SIT block layout dynamically
config: m68k-randconfig-r072-20260830 (https://download.01.org/0day-ci/archive/20260830/202608301649.G22k4ucE-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.5.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260830/202608301649.G22k4ucE-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/202608301649.G22k4ucE-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from fs/f2fs/dir.c:10:
>> include/linux/f2fs_fs.h:431:31: error: flexible array member in a struct with no named members
431 | struct f2fs_sit_entry entries[];
| ^~~~~~~
--
In file included from fs/f2fs/segment.c:9:
>> include/linux/f2fs_fs.h:431:31: error: flexible array member in a struct with no named members
431 | struct f2fs_sit_entry entries[];
| ^~~~~~~
fs/f2fs/segment.c: In function 'f2fs_flush_sit_entries':
>> fs/f2fs/segment.c:4865:37: warning: variable 'sit_offset' set but not used [-Wunused-but-set-variable]
4865 | int offset, sit_offset;
| ^~~~~~~~~~
--
In file included from f2fs/segment.c:9:
>> include/linux/f2fs_fs.h:431:31: error: flexible array member in a struct with no named members
431 | struct f2fs_sit_entry entries[];
| ^~~~~~~
f2fs/segment.c: In function 'f2fs_flush_sit_entries':
f2fs/segment.c:4865:37: warning: variable 'sit_offset' set but not used [-Wunused-but-set-variable]
4865 | int offset, sit_offset;
| ^~~~~~~~~~
vim +431 include/linux/f2fs_fs.h
424
425 /*
426 * The on-disk SIT block is a filesystem-block-sized array of SIT entries.
427 * Its entry count depends on the filesystem block size, so it must be
428 * calculated by the caller rather than implied by this C structure.
429 */
430 struct f2fs_sit_block {
> 431 struct f2fs_sit_entry entries[];
432 } __packed;
433
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-08-30 8:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-30 8:09 kernel test robot [this message]
2026-08-31 4:58 ` [chao:feature/subpage 1/10] include/linux/f2fs_fs.h:431:31: error: flexible array member in a struct with no named members Xinping Zhang
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=202608301649.G22k4ucE-lkp@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zhangxp1998@gmail.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 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.