public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
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,
	Kent Overstreet <kent.overstreet@linux.dev>
Subject: [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)
Date: Wed, 26 Feb 2025 15:48:53 +0800	[thread overview]
Message-ID: <202502261546.ZokeMDs6-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-02-26  7:49 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=202502261546.ZokeMDs6-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