include/linux/compiler_types.h:696:45: error: call to '__compiletime_assert_771' declared with attribute error: BUILD_BUG_ON failed: sizeof(*batch) < sizeof(*storage)
kernel test robot
build bottree: https://github.com/smfrench/smb3-kernel.git ksmbd-for-next head: 5cf574b306a01ec7f3a507e999b524ee39f0dee0 commit: 3405caa2fd58ffc59dc47f62588d10698bb49ec1 [92/144] smb: client: make use of smbdirect_connection_send_{single_iter,immediate_work}() config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260214/[email protected]/config) compiler: m68k-linux-gcc (GCC) 15.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260214/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from <command-line>:
In function 'smbdirect_init_send_batch_storage',
inlined from 'smbd_send' at fs/smb/client/smbdirect.c:1220:10:
>> include/linux/compiler_types.h:696:45: error: call to '__compiletime_assert_771' declared with attribute error: BUILD_BUG_ON failed: sizeof(*batch) < sizeof(*storage)
696 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:677:25: note: in definition of macro '__compiletime_assert'
677 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:696:9: note: in expansion of macro '_compiletime_assert'
696 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
fs/smb/client/../common/smbdirect/smbdirect_connection.c:993:9: note: in expansion of macro 'BUILD_BUG_ON'
993 | BUILD_BUG_ON(sizeof(*batch) < sizeof(*storage));
| ^~~~~~~~~~~~
--
In file included from <command-line>:
In function 'smbdirect_init_send_batch_storage',
inlined from 'smbd_send' at client/smbdirect.c:1220:10:
>> include/linux/compiler_types.h:696:45: error: call to '__compiletime_assert_771' declared with attribute error: BUILD_BUG_ON failed: sizeof(*batch) < sizeof(*storage)
696 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:677:25: note: in definition of macro '__compiletime_assert'
677 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:696:9: note: in expansion of macro '_compiletime_assert'
696 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
client/../common/smbdirect/smbdirect_connection.c:993:9: note: in expansion of macro 'BUILD_BUG_ON'
993 | BUILD_BUG_ON(sizeof(*batch) < sizeof(*storage));
| ^~~~~~~~~~~~vim +/__compiletime_assert_771 +696 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 682 eb5c2d4b45e3d2 Will Deacon 2020-07-21 683 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 684 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 685 eb5c2d4b45e3d2 Will Deacon 2020-07-21 686 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 687 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 688 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 689 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 690 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 691 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 692 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 693 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 694 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 695 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @696 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)eb5c2d4b45e3d2 Will Deacon 2020-07-21 697
:::::: The code at line 696 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <[email protected]>
:::::: CC: Will Deacon <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki