From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jpoimboe:alternative-macro 3/8] include/linux/gfp.h:450:6: error: expected ')'
Date: Mon, 8 Dec 2025 05:43:53 +0800 [thread overview]
Message-ID: <202512080500.2s1wXYcK-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git alternative-macro
head: 161065454fa1b06980ecf2610f26819235eb6ffa
commit: a1a0378deeaf70bc733141e6decd369495938079 [3/8] objtool: Rename C ANNOTATE_REACHABLE to ANNOTATE_REACHABLE_LABEL
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20251208/202512080500.2s1wXYcK-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251208/202512080500.2s1wXYcK-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512080500.2s1wXYcK-lkp@intel.com/
All errors (new ones prefixed by >>):
312 | WARN_ON_ONCE(IS_ENABLED(CONFIG_PROVE_RCU) && in_nmi());
| ^
include/asm-generic/bug.h:122:3: note: expanded from macro 'WARN_ON_ONCE'
122 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
In file included from arch/loongarch/kernel/asm-offsets.c:11:
In file included from include/linux/mm.h:7:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:1538:
In file included from include/linux/memory_hotplug.h:7:
In file included from include/linux/notifier.h:16:
include/linux/srcu.h:374:2: error: expected ')'
374 | WARN_ON_ONCE(in_nmi());
| ^
include/asm-generic/bug.h:122:3: note: expanded from macro 'WARN_ON_ONCE'
122 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
In file included from arch/loongarch/kernel/asm-offsets.c:11:
In file included from include/linux/mm.h:7:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:1538:
In file included from include/linux/memory_hotplug.h:7:
In file included from include/linux/notifier.h:16:
include/linux/srcu.h:389:2: error: expected ')'
389 | WARN_ON_ONCE(idx & ~0x1);
| ^
include/asm-generic/bug.h:122:3: note: expanded from macro 'WARN_ON_ONCE'
122 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
In file included from arch/loongarch/kernel/asm-offsets.c:11:
In file included from include/linux/mm.h:7:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:1538:
In file included from include/linux/memory_hotplug.h:7:
In file included from include/linux/notifier.h:16:
include/linux/srcu.h:433:2: error: expected ')'
433 | WARN_ON_ONCE(IS_ENABLED(CONFIG_PROVE_RCU) && in_nmi());
| ^
include/asm-generic/bug.h:122:3: note: expanded from macro 'WARN_ON_ONCE'
122 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
In file included from arch/loongarch/kernel/asm-offsets.c:11:
In file included from include/linux/mm.h:7:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:1538:
In file included from include/linux/memory_hotplug.h:7:
In file included from include/linux/notifier.h:16:
include/linux/srcu.h:449:2: error: expected ')'
449 | WARN_ON_ONCE(idx & ~0x1);
| ^
include/asm-generic/bug.h:122:3: note: expanded from macro 'WARN_ON_ONCE'
122 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
In file included from arch/loongarch/kernel/asm-offsets.c:11:
In file included from include/linux/mm.h:7:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:1538:
In file included from include/linux/memory_hotplug.h:7:
In file included from include/linux/notifier.h:16:
include/linux/srcu.h:474:2: error: expected ')'
474 | WARN_ON_ONCE(idx & ~0x1);
| ^
include/asm-generic/bug.h:122:3: note: expanded from macro 'WARN_ON_ONCE'
122 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
In file included from arch/loongarch/kernel/asm-offsets.c:11:
In file included from include/linux/mm.h:7:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:1538:
In file included from include/linux/memory_hotplug.h:7:
In file included from include/linux/notifier.h:16:
include/linux/srcu.h:475:2: error: expected ')'
475 | WARN_ON_ONCE(in_nmi());
| ^
include/asm-generic/bug.h:122:3: note: expanded from macro 'WARN_ON_ONCE'
122 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
In file included from arch/loongarch/kernel/asm-offsets.c:11:
In file included from include/linux/mm.h:7:
>> include/linux/gfp.h:450:6: error: expected ')'
450 | if (WARN_ON(!order || !(gfp & __GFP_COMP)))
| ^
include/asm-generic/bug.h:112:3: note: expanded from macro 'WARN_ON'
112 | __WARN_FLAGS(#condition, \
| ^
arch/loongarch/include/asm/bug.h:47:49: note: expanded from macro '__WARN_FLAGS'
47 | __BUG_FLAGS(cond_str, BUGFLAG_WARNING|(flags), ANNOTATE_REACHABLE(10001b));\
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[3]: *** [scripts/Makefile.build:182: arch/loongarch/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1283: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +450 include/linux/gfp.h
041d3a8cdc18dc3 Michal Nazarewicz 2011-12-29 443
e98337d11bbdfa3 Yu Zhao 2024-08-13 444 #ifdef CONFIG_CONTIG_ALLOC
e98337d11bbdfa3 Yu Zhao 2024-08-13 445 static inline struct folio *folio_alloc_gigantic_noprof(int order, gfp_t gfp,
e98337d11bbdfa3 Yu Zhao 2024-08-13 446 int nid, nodemask_t *node)
e98337d11bbdfa3 Yu Zhao 2024-08-13 447 {
e98337d11bbdfa3 Yu Zhao 2024-08-13 448 struct page *page;
e98337d11bbdfa3 Yu Zhao 2024-08-13 449
e98337d11bbdfa3 Yu Zhao 2024-08-13 @450 if (WARN_ON(!order || !(gfp & __GFP_COMP)))
e98337d11bbdfa3 Yu Zhao 2024-08-13 451 return NULL;
e98337d11bbdfa3 Yu Zhao 2024-08-13 452
e98337d11bbdfa3 Yu Zhao 2024-08-13 453 page = alloc_contig_pages_noprof(1 << order, gfp, nid, node);
e98337d11bbdfa3 Yu Zhao 2024-08-13 454
e98337d11bbdfa3 Yu Zhao 2024-08-13 455 return page ? page_folio(page) : NULL;
e98337d11bbdfa3 Yu Zhao 2024-08-13 456 }
e98337d11bbdfa3 Yu Zhao 2024-08-13 457 #else
e98337d11bbdfa3 Yu Zhao 2024-08-13 458 static inline struct folio *folio_alloc_gigantic_noprof(int order, gfp_t gfp,
e98337d11bbdfa3 Yu Zhao 2024-08-13 459 int nid, nodemask_t *node)
e98337d11bbdfa3 Yu Zhao 2024-08-13 460 {
e98337d11bbdfa3 Yu Zhao 2024-08-13 461 return NULL;
e98337d11bbdfa3 Yu Zhao 2024-08-13 462 }
e98337d11bbdfa3 Yu Zhao 2024-08-13 463 #endif
e98337d11bbdfa3 Yu Zhao 2024-08-13 464 /* This should be paired with folio_put() rather than free_contig_range(). */
e98337d11bbdfa3 Yu Zhao 2024-08-13 465 #define folio_alloc_gigantic(...) alloc_hooks(folio_alloc_gigantic_noprof(__VA_ARGS__))
e98337d11bbdfa3 Yu Zhao 2024-08-13 466
:::::: The code at line 450 was first introduced by commit
:::::: e98337d11bbdfa3e3f0fb99aa93e40f97549e0cd mm/contig_alloc: support __GFP_COMP
:::::: TO: Yu Zhao <yuzhao@google.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-07 21:44 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=202512080500.2s1wXYcK-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--cc=llvm@lists.linux.dev \
--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