All of lore.kernel.org
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/auxclock-nanosleep 41/41] include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
@ 2026-10-28 19:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-28 19:52 UTC (permalink / raw)
  To: Thomas Weißschuh (Schneider Electric); +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/auxclock-nanosleep
head:   b07585bb535605fb7baff6811b5b778c83af0805
commit: b07585bb535605fb7baff6811b5b778c83af0805 [41/41] timekeeping: Only copy valid auxiliary clock conversion parameters
config: openrisc-randconfig-r2100-20261028 (https://download.01.org/0day-ci/archive/20261028/202610282037.7oUndeYE-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261028/202610282037.7oUndeYE-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/202610282037.7oUndeYE-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/init.h:5,
                    from sound/drivers/dummy.c:7:
   include/linux/build_bug.h:80:41: error: static assertion failed: "SMP_CACHE_BYTES % sizeof(struct tk_aux_mono_conv) == 0"
      80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
         |                                         ^~~~~~~~~~~~~~
   include/linux/build_bug.h:79:34: note: in expansion of macro '__static_assert'
      79 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
         |                                  ^~~~~~~~~~~~~~~
   include/linux/timekeeping_types.h:62:1: note: in expansion of macro 'static_assert'
      62 | static_assert(SMP_CACHE_BYTES % sizeof(struct tk_aux_mono_conv) == 0);
         | ^~~~~~~~~~~~~
   In file included from include/linux/build_bug.h:5:
>> include/linux/compiler.h:200:82: error: expression in static assertion is not an integer
     200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
         |                                                                                  ^
   include/linux/compiler.h:205:33: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
     205 | #define __must_be_array(a)      __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/array_size.h:11:59: note: in expansion of macro '__must_be_array'
      11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   include/linux/moduleparam.h:544:20: note: in expansion of macro 'ARRAY_SIZE'
     544 |         = { .max = ARRAY_SIZE(array), .num = nump,                      \
         |                    ^~~~~~~~~~
   include/linux/moduleparam.h:528:9: note: in expansion of macro 'module_param_array_named'
     528 |         module_param_array_named(name, name, type, nump, perm)
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/drivers/dummy.c:64:1: note: in expansion of macro 'module_param_array'
      64 | module_param_array(index, int, NULL, 0444);
         | ^~~~~~~~~~~~~~~~~~
   sound/drivers/dummy.c:50:12: warning: 'index' defined but not used [-Wunused-variable]
      50 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;      /* Index 0-MAX */
         |            ^~~~~


vim +200 include/linux/compiler.h

230fa253df6352 Christian Borntraeger 2014-11-25  196  
cb7380de9e4cbc Kees Cook             2025-02-05  197  #ifdef __CHECKER__
243c90e917f5cf Vincent Mailhol       2025-03-29  198  #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) (0)
cb7380de9e4cbc Kees Cook             2025-02-05  199  #else /* __CHECKER__ */
243c90e917f5cf Vincent Mailhol       2025-03-29 @200  #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
cb7380de9e4cbc Kees Cook             2025-02-05  201  #endif /* __CHECKER__ */
cb7380de9e4cbc Kees Cook             2025-02-05  202  

:::::: The code at line 200 was first introduced by commit
:::::: 243c90e917f5cfc99821e5104d1c8a81c11cda4c build_bug.h: more user friendly error messages in BUILD_BUG_ON_ZERO()

:::::: TO: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
:::::: CC: Yury Norov <yury.norov@gmail.com>

--
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-10-28 19:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-28 19:52 [thomas-weissschuh:b4/auxclock-nanosleep 41/41] include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 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.