[zab-rpdfs:rpdfs-initial 85/93] include/linux/compiler_types.h:568:45: error: call to '__compiletime_assert_407' declared with attribute error: BUILD_BUG_ON failed: RPDFS_BLOCK_SIZE != PAGE_SIZE
kernel test robot <[email protected]> Sat, 01 Aug 2026 23:50:31 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zab/linux-rpdfs.git rpdfs-initial head: 7dd9571ed4664ad741e8519b4a4369a2d84523f6 commit: 2f7d4b4295890ece08df31aa8e2d0150594c6c07 [85/93] rpdfs: update inode code config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20260801/[email protected]/config) compiler: alpha-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/[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>: fs/rpdfs/aops.c: In function 'recv_block_read_result': >> include/linux/compiler_types.h:568:45: error: call to '__compiletime_assert_407' declared with attribute error: BUILD_BUG_ON failed: RPDFS_BLOCK_SIZE != PAGE_SIZE 568 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:549:25: note: in definition of macro '__compiletime_assert' 549 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:568:9: note: in expansion of macro '_compiletime_assert' 568 | _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/rpdfs/aops.c:99:9: note: in expansion of macro 'BUILD_BUG_ON' 99 | BUILD_BUG_ON(RPDFS_BLOCK_SIZE != PAGE_SIZE); | ^~~~~~~~~~~~ -- In file included from <command-line>: fs/rpdfs/meta.c: In function 'rpdfs_meta_get_folio': >> include/linux/compiler_types.h:568:45: error: call to '__compiletime_assert_401' declared with attribute error: BUILD_BUG_ON failed: PAGE_SIZE != RPDFS_BLOCK_SIZE 568 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:549:25: note: in definition of macro '__compiletime_assert' 549 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:568:9: note: in expansion of macro '_compiletime_assert' 568 | _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/rpdfs/meta.c:182:9: note: in expansion of macro 'BUILD_BUG_ON' 182 | BUILD_BUG_ON(PAGE_SIZE != RPDFS_BLOCK_SIZE); | ^~~~~~~~~~~~ vim +/__compiletime_assert_407 +568 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 554 eb5c2d4b45e3d2 Will Deacon 2020-07-21 555 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 556 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 557 eb5c2d4b45e3d2 Will Deacon 2020-07-21 558 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 559 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 560 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 561 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 562 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 563 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 564 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 565 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 566 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 567 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @568 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 569 :::::: The code at line 568 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]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki