From: kernel test robot <lkp@intel.com>
To: Chao Yu <chao@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [chao:bugfix/common 9/12] fs/f2fs/node.c:1547:27: error: expected ':' after 'case'
Date: Tue, 12 May 2026 20:03:25 +0800 [thread overview]
Message-ID: <202605122029.Sv8LyyIw-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git bugfix/common
head: 3fc276f79bae89d43863f797bc4ca48965917be8
commit: 1799e0c0814565aee65a1bc9a58aead705b9bfea [9/12] f2fs: fix to do sanity check on f2fs_get_node_folio_ra()
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260512/202605122029.Sv8LyyIw-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260512/202605122029.Sv8LyyIw-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/202605122029.Sv8LyyIw-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/f2fs/node.c:1547:27: error: expected ':' after 'case'
1547 | case NODE_TYPE_NON_IXNODE;
| ^
| :
1 error generated.
vim +1547 fs/f2fs/node.c
1517
1518 int f2fs_sanity_check_node_footer(struct f2fs_sb_info *sbi,
1519 struct folio *folio, pgoff_t nid,
1520 enum node_type ntype, bool in_irq)
1521 {
1522 bool is_inode, is_xnode;
1523
1524 if (unlikely(nid != nid_of_node(folio)))
1525 goto out_err;
1526
1527 is_inode = IS_INODE(folio);
1528 is_xnode = f2fs_has_xattr_block(ofs_of_node(folio));
1529
1530 switch (ntype) {
1531 case NODE_TYPE_REGULAR:
1532 if (is_inode && is_xnode)
1533 goto out_err;
1534 break;
1535 case NODE_TYPE_INODE:
1536 if (!is_inode || is_xnode)
1537 goto out_err;
1538 break;
1539 case NODE_TYPE_XATTR:
1540 if (is_inode || !is_xnode)
1541 goto out_err;
1542 break;
1543 case NODE_TYPE_NON_INODE:
1544 if (is_inode)
1545 goto out_err;
1546 break;
> 1547 case NODE_TYPE_NON_IXNODE;
1548 if (is_inode || is_xnode)
1549 goto out_err;
1550 default:
1551 break;
1552 }
1553 if (time_to_inject(sbi, FAULT_INCONSISTENT_FOOTER))
1554 goto out_err;
1555 return 0;
1556 out_err:
1557 set_sbi_flag(sbi, SBI_NEED_FSCK);
1558 f2fs_warn_ratelimited(sbi, "inconsistent node block, node_type:%d, nid:%lu, "
1559 "node_footer[nid:%u,ino:%u,ofs:%u,cpver:%llu,blkaddr:%u]",
1560 ntype, nid, nid_of_node(folio), ino_of_node(folio),
1561 ofs_of_node(folio), cpver_of_node(folio),
1562 next_blkaddr_of_node(folio));
1563
1564 f2fs_handle_error(sbi, ERROR_INCONSISTENT_FOOTER);
1565 fserror_report_file_metadata(folio->mapping->host,
1566 -EFSCORRUPTED, in_irq ? GFP_NOWAIT : GFP_NOFS);
1567 return -EFSCORRUPTED;
1568 }
1569
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-12 12:04 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=202605122029.Sv8LyyIw-lkp@intel.com \
--to=lkp@intel.com \
--cc=chao@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.