* [chao:bugfix/common 9/12] fs/f2fs/node.c:1547:27: error: expected ':' after 'case'
@ 2026-05-12 12:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-12 12:03 UTC (permalink / raw)
To: Chao Yu; +Cc: llvm, oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-12 12:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 12:03 [chao:bugfix/common 9/12] fs/f2fs/node.c:1547:27: error: expected ':' after 'case' kernel test robot
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.