From: kernel test robot <lkp@intel.com>
To: Christophe de Dinechin <dinechin@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-stable-rc:linux-4.14.y 2224/4044] include/linux/nodemask.h:371:13: error: comparison of unsigned expression >= 0 is always true
Date: Mon, 23 Jan 2023 10:17:11 +0800 [thread overview]
Message-ID: <202301231026.yRe8RaLy-lkp@intel.com> (raw)
Hi Christophe,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.14.y
head: a6d71d85fd0f5c89a0e3aa52de437d22485dfa61
commit: 339aab239d54368580b9a03ceca009d83a00cfb7 [2224/4044] nodemask.h: fix compilation error with GCC12
config: alpha-randconfig-r006-20230123 (https://download.01.org/0day-ci/archive/20230123/202301231026.yRe8RaLy-lkp@intel.com/config)
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-rc.git/commit/?id=339aab239d54368580b9a03ceca009d83a00cfb7
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.14.y
git checkout 339aab239d54368580b9a03ceca009d83a00cfb7
# 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 olddefconfig
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 <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/mmzone.h:17:0,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/alpha/mm/numa.c:12:
arch/alpha/mm/numa.c: In function 'paging_init':
>> include/linux/nodemask.h:371:13: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
(node >= 0) && (node) < MAX_NUMNODES; \
^
include/linux/nodemask.h:424:2: note: in expansion of macro 'for_each_node_mask'
for_each_node_mask((__node), node_states[__state])
^~~~~~~~~~~~~~~~~~
include/linux/nodemask.h:504: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:305:2: note: in expansion of macro 'for_each_online_node'
for_each_online_node(nid) {
^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +371 include/linux/nodemask.h
367
368 #if MAX_NUMNODES > 1
369 #define for_each_node_mask(node, mask) \
370 for ((node) = first_node(mask); \
> 371 (node >= 0) && (node) < MAX_NUMNODES; \
372 (node) = next_node((node), (mask)))
373 #else /* MAX_NUMNODES == 1 */
374 #define for_each_node_mask(node, mask) \
375 for ((node) = 0; (node) < 1 && !nodes_empty(mask); (node)++)
376 #endif /* MAX_NUMNODES */
377
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-01-23 2:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202301231026.yRe8RaLy-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=dinechin@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox