public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [bcachefs:bcachefs-testing 122/123] fs/bcachefs/extents_format.h:219:10: error: width of bit-field 'flags' (76 bits) exceeds the width of its type (64 bits)
@ 2025-02-26  7:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-26  7:48 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: llvm, oe-kbuild-all, Kent Overstreet

tree:   https://evilpiepirate.org/git/bcachefs.git bcachefs-testing
head:   8de504fc059b751ae0cc0fd600f2d5e28ccb8dc5
commit: 82af8187566114f55114f1b878562de031e0b9b4 [122/123] bcachefs: bcachefs_metadata_version_extent_flags
config: s390-randconfig-002-20250226 (https://download.01.org/0day-ci/archive/20250226/202502261546.ZokeMDs6-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250226/202502261546.ZokeMDs6-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/202502261546.ZokeMDs6-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from fs/bcachefs/btree_locking.c:3:
   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)
           __u64                   flags:76
                                   ^
>> fs/bcachefs/extents_format.h:219:18: error: expected ';' at end of declaration list
           __u64                   flags:76
                                           ^
                                           ;
   2 errors generated.
--
   In file included from fs/bcachefs/io_write.c:7:
   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)
           __u64                   flags:76
                                   ^
>> fs/bcachefs/extents_format.h:219:18: error: expected ';' at end of declaration list
           __u64                   flags:76
                                           ^
                                           ;
>> fs/bcachefs/io_write.c:1180:2: error: statement requires expression of scalar type ('void' invalid)
           extent_for_each_ptr_decode(e, p, entry) {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/extents.h:396:2: note: expanded from macro 'extent_for_each_ptr_decode'
           __bkey_for_each_ptr_decode((_e).k, (_e).v->start,               \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/extents.h:350:2: note: expanded from macro '__bkey_for_each_ptr_decode'
           for ((_ptr).crc = bch2_extent_crc_unpack(_k, NULL),             \
           ^
   3 errors generated.
--
   In file included from fs/bcachefs/move.c:3:
   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)
           __u64                   flags:76
                                   ^
>> fs/bcachefs/extents_format.h:219:18: error: expected ';' at end of declaration list
           __u64                   flags:76
                                           ^
                                           ;
   fs/bcachefs/move.c:715:11: warning: variable 'sectors_moved' set but not used [-Wunused-but-set-variable]
           unsigned sectors_moved = 0;
                    ^
   1 warning and 2 errors generated.
--
   In file included from fs/bcachefs/data_update.c:3:
   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)
           __u64                   flags:76
                                   ^
>> fs/bcachefs/extents_format.h:219:18: error: expected ';' at end of declaration list
           __u64                   flags:76
                                           ^
                                           ;
>> fs/bcachefs/data_update.c:281:3: error: statement requires expression of scalar type ('void' invalid)
                   extent_for_each_ptr_decode(extent_i_to_s(new), p, entry)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/extents.h:396:2: note: expanded from macro 'extent_for_each_ptr_decode'
           __bkey_for_each_ptr_decode((_e).k, (_e).v->start,               \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/extents.h:350:2: note: expanded from macro '__bkey_for_each_ptr_decode'
           for ((_ptr).crc = bch2_extent_crc_unpack(_k, NULL),             \
           ^
   fs/bcachefs/data_update.c:306:3: error: statement requires expression of scalar type ('void' invalid)
                   extent_for_each_ptr_decode(extent_i_to_s(new), p, entry)
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/extents.h:396:2: note: expanded from macro 'extent_for_each_ptr_decode'
           __bkey_for_each_ptr_decode((_e).k, (_e).v->start,               \
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/extents.h:350:2: note: expanded from macro '__bkey_for_each_ptr_decode'
           for ((_ptr).crc = bch2_extent_crc_unpack(_k, NULL),             \
           ^
   4 errors generated.


vim +/flags +219 fs/bcachefs/extents_format.h

   213	
   214	struct bch_extent_flags {
   215	#if defined(__LITTLE_ENDIAN_BITFIELD)
   216		__u64			type:7,
   217					flags:57;
   218	#elif defined (__BIG_ENDIAN_BITFIELD)
 > 219		__u64			flags:76
   220					type:7;
   221	#endif
   222	};
   223	

-- 
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:[~2025-02-26  7:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-26  7:48 [bcachefs:bcachefs-testing 122/123] fs/bcachefs/extents_format.h:219:10: error: width of bit-field 'flags' (76 bits) exceeds the width of its type (64 bits) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox