From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [koverstreet-bcachefs:bcachefs-dir-i-size 123/123] fs/bcachefs/fs-ioctl.c:72:40: error: use of undeclared identifier 'bcachefs_metadata_version_casefolding'
Date: Thu, 27 Feb 2025 12:09:06 +0800 [thread overview]
Message-ID: <202502271256.bF2uoveR-lkp@intel.com> (raw)
tree: https://github.com/koverstreet/bcachefs bcachefs-dir-i-size
head: 559ae9ec988de991142b6a067c313aeb530c2b11
commit: 559ae9ec988de991142b6a067c313aeb530c2b11 [123/123] bcachefs: bcachefs_metadata_version_directory_size_v2
config: s390-randconfig-001-20250227 (https://download.01.org/0day-ci/archive/20250227/202502271256.bF2uoveR-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250227/202502271256.bF2uoveR-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/202502271256.bF2uoveR-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from fs/bcachefs/fs-ioctl.c:4:
In file included from fs/bcachefs/bcachefs.h:208:
In file included from fs/bcachefs/bcachefs_format.h:502:
fs/bcachefs/extents_format.h:219:10: error: width of bit-field 'flags' (76 bits) exceeds the width of its type (64 bits)
219 | __u64 flags:76
| ^
fs/bcachefs/extents_format.h:219:18: error: expected ';' at end of declaration list
219 | __u64 flags:76
| ^
| ;
>> fs/bcachefs/fs-ioctl.c:72:40: error: use of undeclared identifier 'bcachefs_metadata_version_casefolding'
72 | if (!bch2_request_incompat_feature(c,bcachefs_metadata_version_casefolding))
| ^
3 errors generated.
vim +/bcachefs_metadata_version_casefolding +72 fs/bcachefs/fs-ioctl.c
1c6fdbd8f2465d Kent Overstreet 2017-03-16 33
791236b85c2dfd Joshua Ashton 2023-08-12 34 static int bch2_inode_flags_set(struct btree_trans *trans,
791236b85c2dfd Joshua Ashton 2023-08-12 35 struct bch_inode_info *inode,
1c6fdbd8f2465d Kent Overstreet 2017-03-16 36 struct bch_inode_unpacked *bi,
1c6fdbd8f2465d Kent Overstreet 2017-03-16 37 void *p)
1c6fdbd8f2465d Kent Overstreet 2017-03-16 38 {
2ea9004864b918 Kent Overstreet 2018-07-17 39 struct bch_fs *c = inode->v.i_sb->s_fs_info;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 40 /*
1c6fdbd8f2465d Kent Overstreet 2017-03-16 41 * We're relying on btree locking here for exclusion with other ioctl
1c6fdbd8f2465d Kent Overstreet 2017-03-16 42 * calls - use the flags in the btree (@bi), not inode->i_flags:
1c6fdbd8f2465d Kent Overstreet 2017-03-16 43 */
1c6fdbd8f2465d Kent Overstreet 2017-03-16 44 struct flags_set *s = p;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 45 unsigned newflags = s->flags;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 46 unsigned oldflags = bi->bi_flags & s->mask;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 47
103ffe9aaf8566 Kent Overstreet 2023-11-02 48 if (((newflags ^ oldflags) & (BCH_INODE_append|BCH_INODE_immutable)) &&
1c6fdbd8f2465d Kent Overstreet 2017-03-16 49 !capable(CAP_LINUX_IMMUTABLE))
1c6fdbd8f2465d Kent Overstreet 2017-03-16 50 return -EPERM;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 51
2ea9004864b918 Kent Overstreet 2018-07-17 52 if (!S_ISREG(bi->bi_mode) &&
2ea9004864b918 Kent Overstreet 2018-07-17 53 !S_ISDIR(bi->bi_mode) &&
103ffe9aaf8566 Kent Overstreet 2023-11-02 54 (newflags & (BCH_INODE_nodump|BCH_INODE_noatime)) != newflags)
1c6fdbd8f2465d Kent Overstreet 2017-03-16 55 return -EINVAL;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 56
88969fa28d041c Joshua Ashton 2023-08-13 57 if ((newflags ^ oldflags) & BCH_INODE_casefolded) {
88969fa28d041c Joshua Ashton 2023-08-13 58 #ifdef CONFIG_UNICODE
88969fa28d041c Joshua Ashton 2023-08-13 59 int ret = 0;
88969fa28d041c Joshua Ashton 2023-08-13 60 /* Not supported on individual files. */
88969fa28d041c Joshua Ashton 2023-08-13 61 if (!S_ISDIR(bi->bi_mode))
88969fa28d041c Joshua Ashton 2023-08-13 62 return -EOPNOTSUPP;
88969fa28d041c Joshua Ashton 2023-08-13 63
88969fa28d041c Joshua Ashton 2023-08-13 64 /*
88969fa28d041c Joshua Ashton 2023-08-13 65 * Make sure the dir is empty, as otherwise we'd need to
88969fa28d041c Joshua Ashton 2023-08-13 66 * rehash everything and update the dirent keys.
88969fa28d041c Joshua Ashton 2023-08-13 67 */
88969fa28d041c Joshua Ashton 2023-08-13 68 ret = bch2_empty_dir_trans(trans, inode_inum(inode));
88969fa28d041c Joshua Ashton 2023-08-13 69 if (ret < 0)
88969fa28d041c Joshua Ashton 2023-08-13 70 return ret;
88969fa28d041c Joshua Ashton 2023-08-13 71
88969fa28d041c Joshua Ashton 2023-08-13 @72 if (!bch2_request_incompat_feature(c,bcachefs_metadata_version_casefolding))
88969fa28d041c Joshua Ashton 2023-08-13 73 return -EOPNOTSUPP;
88969fa28d041c Joshua Ashton 2023-08-13 74
88969fa28d041c Joshua Ashton 2023-08-13 75 bch2_check_set_feature(c, BCH_FEATURE_casefolding);
88969fa28d041c Joshua Ashton 2023-08-13 76 #else
88969fa28d041c Joshua Ashton 2023-08-13 77 printk(KERN_ERR "Cannot use casefolding on a kernel without CONFIG_UNICODE\n");
88969fa28d041c Joshua Ashton 2023-08-13 78 return -EOPNOTSUPP;
88969fa28d041c Joshua Ashton 2023-08-13 79 #endif
88969fa28d041c Joshua Ashton 2023-08-13 80 }
88969fa28d041c Joshua Ashton 2023-08-13 81
65ff2d3a7abb9f Kent Overstreet 2022-10-12 82 if (s->set_projinherit) {
65ff2d3a7abb9f Kent Overstreet 2022-10-12 83 bi->bi_fields_set &= ~(1 << Inode_opt_project);
65ff2d3a7abb9f Kent Overstreet 2022-10-12 84 bi->bi_fields_set |= ((int) s->projinherit << Inode_opt_project);
65ff2d3a7abb9f Kent Overstreet 2022-10-12 85 }
65ff2d3a7abb9f Kent Overstreet 2022-10-12 86
1c6fdbd8f2465d Kent Overstreet 2017-03-16 87 bi->bi_flags &= ~s->mask;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 88 bi->bi_flags |= newflags;
2ea9004864b918 Kent Overstreet 2018-07-17 89
2ea9004864b918 Kent Overstreet 2018-07-17 90 bi->bi_ctime = timespec_to_bch2_time(c, current_time(&inode->v));
1c6fdbd8f2465d Kent Overstreet 2017-03-16 91 return 0;
1c6fdbd8f2465d Kent Overstreet 2017-03-16 92 }
1c6fdbd8f2465d Kent Overstreet 2017-03-16 93
:::::: The code at line 72 was first introduced by commit
:::::: 88969fa28d041c0f6fadb3d3460603648b760db0 bcachefs: bcachefs_metadata_version_casefolding
:::::: TO: Joshua Ashton <joshua@froggi.es>
:::::: CC: Kent Overstreet <kent.overstreet@linux.dev>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-27 4:09 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=202502271256.bF2uoveR-lkp@intel.com \
--to=lkp@intel.com \
--cc=kent.overstreet@linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox