All of lore.kernel.org
 help / color / mirror / Atom feed
* [koverstreet-bcachefs:bcachefs-testing 133/160] fs/bcachefs/opts.c:240:33: error: initializer element is not constant
@ 2025-03-16 14:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-16 14:02 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: oe-kbuild-all

tree:   https://github.com/koverstreet/bcachefs bcachefs-testing
head:   6d7f54c162635934218ea0cede09f68e40e3bc2f
commit: 0effd697a5c73b9d6182236bbfe428b9d2146f8d [133/160] bcachefs: Kill BCH_DEV_OPT_SETTERS()
config: i386-randconfig-051-20250316 (https://download.01.org/0day-ci/archive/20250316/202503162158.7bEoTl00-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250316/202503162158.7bEoTl00-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/202503162158.7bEoTl00-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:134:9: note: in expansion of macro 'x'
     134 |         x(block_size,                   u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[0].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:134:9: note: in expansion of macro 'x'
     134 |         x(block_size,                   u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:134:9: note: in expansion of macro 'x'
     134 |         x(block_size,                   u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[0].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:134:9: note: in expansion of macro 'x'
     134 |         x(block_size,                   u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:140:9: note: in expansion of macro 'x'
     140 |         x(btree_node_size,              u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[1].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:140:9: note: in expansion of macro 'x'
     140 |         x(btree_node_size,              u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:140:9: note: in expansion of macro 'x'
     140 |         x(btree_node_size,              u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[1].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:140:9: note: in expansion of macro 'x'
     140 |         x(btree_node_size,              u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:146:9: note: in expansion of macro 'x'
     146 |         x(errors,                       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[2].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:146:9: note: in expansion of macro 'x'
     146 |         x(errors,                       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:146:9: note: in expansion of macro 'x'
     146 |         x(errors,                       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[2].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:146:9: note: in expansion of macro 'x'
     146 |         x(errors,                       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:151:9: note: in expansion of macro 'x'
     151 |         x(write_error_timeout,          u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[3].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:151:9: note: in expansion of macro 'x'
     151 |         x(write_error_timeout,          u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:151:9: note: in expansion of macro 'x'
     151 |         x(write_error_timeout,          u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[3].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:151:9: note: in expansion of macro 'x'
     151 |         x(write_error_timeout,          u16,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:156:9: note: in expansion of macro 'x'
     156 |         x(metadata_replicas,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[4].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:156:9: note: in expansion of macro 'x'
     156 |         x(metadata_replicas,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:156:9: note: in expansion of macro 'x'
     156 |         x(metadata_replicas,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[4].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:156:9: note: in expansion of macro 'x'
     156 |         x(metadata_replicas,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:161:9: note: in expansion of macro 'x'
     161 |         x(data_replicas,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[5].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:161:9: note: in expansion of macro 'x'
     161 |         x(data_replicas,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:161:9: note: in expansion of macro 'x'
     161 |         x(data_replicas,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[5].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:161:9: note: in expansion of macro 'x'
     161 |         x(data_replicas,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:166:9: note: in expansion of macro 'x'
     166 |         x(metadata_replicas_required, u8,                               \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[6].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:166:9: note: in expansion of macro 'x'
     166 |         x(metadata_replicas_required, u8,                               \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:166:9: note: in expansion of macro 'x'
     166 |         x(metadata_replicas_required, u8,                               \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[6].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:166:9: note: in expansion of macro 'x'
     166 |         x(metadata_replicas_required, u8,                               \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:171:9: note: in expansion of macro 'x'
     171 |         x(data_replicas_required,       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[7].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:171:9: note: in expansion of macro 'x'
     171 |         x(data_replicas_required,       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:171:9: note: in expansion of macro 'x'
     171 |         x(data_replicas_required,       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[7].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:171:9: note: in expansion of macro 'x'
     171 |         x(data_replicas_required,       u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:176:9: note: in expansion of macro 'x'
     176 |         x(encoded_extent_max,           u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[8].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:176:9: note: in expansion of macro 'x'
     176 |         x(encoded_extent_max,           u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:176:9: note: in expansion of macro 'x'
     176 |         x(encoded_extent_max,           u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[8].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:176:9: note: in expansion of macro 'x'
     176 |         x(encoded_extent_max,           u32,                            \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:182:9: note: in expansion of macro 'x'
     182 |         x(metadata_checksum,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[9].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:182:9: note: in expansion of macro 'x'
     182 |         x(metadata_checksum,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
>> fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:182:9: note: in expansion of macro 'x'
     182 |         x(metadata_checksum,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[9].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:182:9: note: in expansion of macro 'x'
     182 |         x(metadata_checksum,            u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:187:9: note: in expansion of macro 'x'
     187 |         x(data_checksum,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[10].get_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:187:9: note: in expansion of macro 'x'
     187 |         x(data_checksum,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:187:9: note: in expansion of macro 'x'
     187 |         x(data_checksum,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: note: (near initialization for 'bch2_opt_table[10].set_sb')
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:267:35: note: in expansion of macro 'filter_if_type_and_neq'
     267 |                 .set_sb         = filter_if_type_and_neq(SET_##_sb_opt, SET_BCH2_NO_SB_OPT),    \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:187:9: note: in expansion of macro 'x'
     187 |         x(data_checksum,                u8,                             \
         |         ^
   fs/bcachefs/opts.c:273:9: note: in expansion of macro 'BCH_OPTS'
     273 |         BCH_OPTS()
         |         ^~~~~~~~
   fs/bcachefs/opts.c:240:33: error: initializer element is not constant
     240 | #define mask_if_eq(_p, _v)      (_p != _v ? _p : NULL)
         |                                 ^
   fs/bcachefs/opts.c:243:9: note: in expansion of macro 'mask_if_eq'
     243 |         mask_if_eq(type_compatible_or_null(_p, _v), _v)
         |         ^~~~~~~~~~
   fs/bcachefs/opts.c:266:35: note: in expansion of macro 'filter_if_type_and_neq'
     266 |                 .get_sb         = filter_if_type_and_neq(_sb_opt,       BCH2_NO_SB_OPT),        \
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   fs/bcachefs/opts.h:192:9: note: in expansion of macro 'x'
     192 |         x(compression,                  u8,                             \


vim +240 fs/bcachefs/opts.c

   235	
   236	#define type_compatible_or_null(_p, _type)				\
   237		__builtin_choose_expr(						\
   238			__builtin_types_compatible_p(typeof(_p), typeof(_type)), _p, NULL)
   239	
 > 240	#define mask_if_eq(_p, _v)	(_p != _v ? _p : NULL)
   241	

-- 
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-03-16 14:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-16 14:02 [koverstreet-bcachefs:bcachefs-testing 133/160] fs/bcachefs/opts.c:240:33: error: initializer element is not constant 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.