tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y head: 69c28067fd0b6c4a980b04fb5bc445407d20316f commit: c763ba737af56565c4b9bdd7f7e4ccfc1d5619a0 [1768/2665] nodemask.h: fix compilation error with GCC12 config: alpha-allyesconfig compiler: alpha-linux-gcc (GCC) 7.5.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=c763ba737af56565c4b9bdd7f7e4ccfc1d5619a0 git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git git fetch --no-tags stable linux-4.9.y git checkout c763ba737af56565c4b9bdd7f7e4ccfc1d5619a0 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/mmzone.h:16:0, from include/linux/gfp.h:5, from include/linux/mm.h:9, from arch/alpha/mm/numa.c:11: arch/alpha/mm/numa.c: In function 'paging_init': >> include/linux/nodemask.h:370:13: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits] (node >= 0) && (node) < MAX_NUMNODES; \ ^ include/linux/nodemask.h:427:2: note: in expansion of macro 'for_each_node_mask' for_each_node_mask((__node), node_states[__state]) ^~~~~~~~~~~~~~~~~~ include/linux/nodemask.h:507:36: note: in expansion of macro 'for_each_node_state' #define for_each_online_node(node) for_each_node_state(node, N_ONLINE) ^~~~~~~~~~~~~~~~~~~ arch/alpha/mm/numa.c:304:2: note: in expansion of macro 'for_each_online_node' for_each_online_node(nid) { ^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +370 include/linux/nodemask.h 366 367 #if MAX_NUMNODES > 1 368 #define for_each_node_mask(node, mask) \ 369 for ((node) = first_node(mask); \ > 370 (node >= 0) && (node) < MAX_NUMNODES; \ 371 (node) = next_node((node), (mask))) 372 #else /* MAX_NUMNODES == 1 */ 373 #define for_each_node_mask(node, mask) \ 374 for ((node) = 0; (node) < 1 && !nodes_empty(mask); (node)++) 375 #endif /* MAX_NUMNODES */ 376 -- 0-DAY CI Kernel Test Service https://01.org/lkp