Hi Balbir, kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Balbir-Singh/mm-zone_device-support-large-zone-device-private-folios/20250812-105145 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20250812024036.690064-11-balbirs%40nvidia.com patch subject: [v3 10/11] gpu/drm/nouveau: add THP migration support config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20250813/202508130923.0vga41zv-...@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250813/202508130923.0vga41zv-...@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 <l...@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202508130923.0vga41zv-...@intel.com/ All errors (new ones prefixed by >>): In file included from <command-line>: drivers/gpu/drm/nouveau/nouveau_dmem.c: In function 'nouveau_dmem_migrate_vma': >> include/linux/compiler_types.h:572:45: error: call to >> '__compiletime_assert_706' declared with attribute error: max((1<<((16 + >> __pte_index_size)-16)), max) signedness error 572 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:553:25: note: in definition of macro '__compiletime_assert' 553 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:572:9: note: in expansion of macro '_compiletime_assert' 572 | _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:93:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 93 | BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:98:9: note: in expansion of macro '__careful_cmp_once' 98 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ^~~~~~~~~~~~~~~~~~ include/linux/minmax.h:112:25: note: in expansion of macro '__careful_cmp' 112 | #define max(x, y) __careful_cmp(max, x, y) | ^~~~~~~~~~~~~ drivers/gpu/drm/nouveau/nouveau_dmem.c:811:23: note: in expansion of macro 'max' 811 | max = max(HPAGE_PMD_NR, max); | ^~~ -- In file included from <command-line>: nouveau/nouveau_dmem.c: In function 'nouveau_dmem_migrate_vma': >> include/linux/compiler_types.h:572:45: error: call to >> '__compiletime_assert_706' declared with attribute error: max((1<<((16 + >> __pte_index_size)-16)), max) signedness error 572 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:553:25: note: in definition of macro '__compiletime_assert' 553 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:572:9: note: in expansion of macro '_compiletime_assert' 572 | _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:93:9: note: in expansion of macro 'BUILD_BUG_ON_MSG' 93 | BUILD_BUG_ON_MSG(!__types_ok(ux, uy), \ | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:98:9: note: in expansion of macro '__careful_cmp_once' 98 | __careful_cmp_once(op, x, y, __UNIQUE_ID(x_), __UNIQUE_ID(y_)) | ^~~~~~~~~~~~~~~~~~ include/linux/minmax.h:112:25: note: in expansion of macro '__careful_cmp' 112 | #define max(x, y) __careful_cmp(max, x, y) | ^~~~~~~~~~~~~ nouveau/nouveau_dmem.c:811:23: note: in expansion of macro 'max' 811 | max = max(HPAGE_PMD_NR, max); | ^~~ vim +/__compiletime_assert_706 +572 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 558 eb5c2d4b45e3d2 Will Deacon 2020-07-21 559 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 560 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 561 eb5c2d4b45e3d2 Will Deacon 2020-07-21 562 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 563 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 564 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 565 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 566 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 567 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 568 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 569 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 570 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 571 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @572 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 573 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki