public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [jpoimboe:alternative-macro 3/8] include/linux/gfp.h:450:6: error: expected ')'
@ 2025-12-07 21:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-07 21:43 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-07 21:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-07 21:43 [jpoimboe:alternative-macro 3/8] include/linux/gfp.h:450:6: error: expected ')' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox