[android-common:android12-kiwi-5.10 272/272] include/linux/compiler_types.h:309:45: error: call to '__compiletime_assert_402' declared with attribute error: clamp() low limit source_min greater than high limit source_max
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
Hi David, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android12-kiwi-5.10 head: 9c40f45d2c22f05e45bc48b1d7be869adf7e473a commit: 530278140b21c18bf53392ce59ee2f46b094286b [272/272] minmax.h: use BUILD_BUG_ON_MSG() for the lo < hi test in clamp() config: i386-buildonly-randconfig-001-20260813 (https://download.01.org/0day-ci/archive/20260813/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/[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>: drivers/gpu/drm/i915/display/intel_panel.c: In function 'scale': >> include/linux/compiler_types.h:309:45: error: call to '__compiletime_assert_402' declared with attribute error: clamp() low limit source_min greater than high limit source_max 309 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:290:25: note: in definition of macro '__compiletime_assert' 290 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:309:9: note: in expansion of macro '_compiletime_assert' 309 | _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/minmax.h:109:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 109 | BUILD_BUG_ON_MSG(statically_true(ulo > uhi), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:116:9: note: in expansion of macro '__clamp_once' 116 | __clamp_once(val, lo, hi, __UNIQUE_ID(v_), __UNIQUE_ID(l_), __UNIQUE_ID(h_)) | ^~~~~~~~~~~~ include/linux/minmax.h:192:28: note: in expansion of macro '__careful_clamp' 192 | #define clamp(val, lo, hi) __careful_clamp(val, lo, hi) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/i915/display/intel_panel.c:479:22: note: in expansion of macro 'clamp' 479 | source_val = clamp(source_val, source_min, source_max); | ^~~~~ vim +/__compiletime_assert_402 +309 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 295 eb5c2d4b45e3d2 Will Deacon 2020-07-21 296 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 297 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 298 eb5c2d4b45e3d2 Will Deacon 2020-07-21 299 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 300 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 301 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 302 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 303 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 304 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 305 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 306 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 307 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 308 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @309 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 310 :::::: The code at line 309 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