Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [ardb:for-kernelci 6/18] include/linux/page-flags-layout.h:58:35: error: function-like macro 'pgtable_l5_enabled' is not defined
@ 2025-05-07  8:23 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-07  8:23 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git for-kernelci
head:   f309d115ff0674e0ce4fe010e587d40bfb5b6e4e
commit: 497440fc4206a8003c215a891e14c90159270f41 [6/18] x86/boot: Drop global variables keeping track of LA57 state
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20250507/202505071609.CMJaUaWq-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071609.CMJaUaWq-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/202505071609.CMJaUaWq-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:19:
   In file included from include/linux/slab.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:20:
>> include/linux/page-flags-layout.h:58:35: warning: 'pgtable_l5_enabled' is not defined, evaluates to 0 [-Wundef]
      58 | #if ZONES_WIDTH + LRU_GEN_WIDTH + SECTIONS_WIDTH + NODES_SHIFT \
         |                                   ^
   include/linux/page-flags-layout.h:53:25: note: expanded from macro 'SECTIONS_WIDTH'
      53 | #define SECTIONS_WIDTH          SECTIONS_SHIFT
         |                                 ^
   include/linux/page-flags-layout.h:31:25: note: expanded from macro 'SECTIONS_SHIFT'
      31 | #define SECTIONS_SHIFT  (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                          ^
   arch/x86/include/asm/sparsemem.h:29:28: note: expanded from macro 'MAX_PHYSMEM_BITS'
      29 | # define MAX_PHYSMEM_BITS       (pgtable_l5_enabled() ? 52 : 46)
         |                                  ^
   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:19:
   In file included from include/linux/slab.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:20:
>> include/linux/page-flags-layout.h:58:35: error: function-like macro 'pgtable_l5_enabled' is not defined
   include/linux/page-flags-layout.h:53:25: note: expanded from macro 'SECTIONS_WIDTH'
      53 | #define SECTIONS_WIDTH          SECTIONS_SHIFT
         |                                 ^
   include/linux/page-flags-layout.h:31:25: note: expanded from macro 'SECTIONS_SHIFT'
      31 | #define SECTIONS_SHIFT  (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                          ^
   arch/x86/include/asm/sparsemem.h:29:28: note: expanded from macro 'MAX_PHYSMEM_BITS'
      29 | # define MAX_PHYSMEM_BITS       (pgtable_l5_enabled() ? 52 : 46)
         |                                  ^
   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:19:
   In file included from include/linux/slab.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:20:
   include/linux/page-flags-layout.h:93:35: warning: 'pgtable_l5_enabled' is not defined, evaluates to 0 [-Wundef]
      93 | #if ZONES_WIDTH + LRU_GEN_WIDTH + SECTIONS_WIDTH + NODES_WIDTH + \
         |                                   ^
   include/linux/page-flags-layout.h:53:25: note: expanded from macro 'SECTIONS_WIDTH'
      53 | #define SECTIONS_WIDTH          SECTIONS_SHIFT
         |                                 ^
   include/linux/page-flags-layout.h:31:25: note: expanded from macro 'SECTIONS_SHIFT'
      31 | #define SECTIONS_SHIFT  (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                          ^
   arch/x86/include/asm/sparsemem.h:29:28: note: expanded from macro 'MAX_PHYSMEM_BITS'
      29 | # define MAX_PHYSMEM_BITS       (pgtable_l5_enabled() ? 52 : 46)
         |                                  ^
   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:19:
   In file included from include/linux/slab.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:20:
   include/linux/page-flags-layout.h:93:35: error: function-like macro 'pgtable_l5_enabled' is not defined
   include/linux/page-flags-layout.h:53:25: note: expanded from macro 'SECTIONS_WIDTH'
      53 | #define SECTIONS_WIDTH          SECTIONS_SHIFT
         |                                 ^
   include/linux/page-flags-layout.h:31:25: note: expanded from macro 'SECTIONS_SHIFT'
      31 | #define SECTIONS_SHIFT  (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                          ^
   arch/x86/include/asm/sparsemem.h:29:28: note: expanded from macro 'MAX_PHYSMEM_BITS'
      29 | # define MAX_PHYSMEM_BITS       (pgtable_l5_enabled() ? 52 : 46)
         |                                  ^
   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:19:
   In file included from include/linux/slab.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:20:
   include/linux/page-flags-layout.h:104:35: warning: 'pgtable_l5_enabled' is not defined, evaluates to 0 [-Wundef]
     104 | #if ZONES_WIDTH + LRU_GEN_WIDTH + SECTIONS_WIDTH + NODES_WIDTH + \
         |                                   ^
   include/linux/page-flags-layout.h:53:25: note: expanded from macro 'SECTIONS_WIDTH'
      53 | #define SECTIONS_WIDTH          SECTIONS_SHIFT
         |                                 ^
   include/linux/page-flags-layout.h:31:25: note: expanded from macro 'SECTIONS_SHIFT'
      31 | #define SECTIONS_SHIFT  (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                          ^
   arch/x86/include/asm/sparsemem.h:29:28: note: expanded from macro 'MAX_PHYSMEM_BITS'
      29 | # define MAX_PHYSMEM_BITS       (pgtable_l5_enabled() ? 52 : 46)
         |                                  ^
   In file included from arch/x86/kernel/asm-offsets.c:9:
   In file included from include/linux/crypto.h:19:
   In file included from include/linux/slab.h:16:
   In file included from include/linux/gfp.h:7:
   In file included from include/linux/mmzone.h:20:
   include/linux/page-flags-layout.h:104:35: error: function-like macro 'pgtable_l5_enabled' is not defined
   include/linux/page-flags-layout.h:53:25: note: expanded from macro 'SECTIONS_WIDTH'
      53 | #define SECTIONS_WIDTH          SECTIONS_SHIFT
         |                                 ^
   include/linux/page-flags-layout.h:31:25: note: expanded from macro 'SECTIONS_SHIFT'
      31 | #define SECTIONS_SHIFT  (MAX_PHYSMEM_BITS - SECTION_SIZE_BITS)
         |                          ^
   arch/x86/include/asm/sparsemem.h:29:28: note: expanded from macro 'MAX_PHYSMEM_BITS'
      29 | # define MAX_PHYSMEM_BITS       (pgtable_l5_enabled() ? 52 : 46)
         |                                  ^
   In file included from arch/x86/kernel/asm-offsets.c:14:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:17:
   In file included from include/linux/fs.h:34:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from arch/x86/kernel/asm-offsets.c:14:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:17:
   In file included from include/linux/fs.h:34:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                                       ^        ~


vim +/pgtable_l5_enabled +58 include/linux/page-flags-layout.h

bbeae5b05ef6e4 Peter Zijlstra 2013-02-22  57  
ec1c86b25f4bdd Yu Zhao        2022-09-18 @58  #if ZONES_WIDTH + LRU_GEN_WIDTH + SECTIONS_WIDTH + NODES_SHIFT \
ec1c86b25f4bdd Yu Zhao        2022-09-18  59  	<= BITS_PER_LONG - NR_PAGEFLAGS
bbeae5b05ef6e4 Peter Zijlstra 2013-02-22  60  #define NODES_WIDTH		NODES_SHIFT
1587db62d8c0db Yu Zhao        2021-04-29  61  #elif defined(CONFIG_SPARSEMEM_VMEMMAP)
bbeae5b05ef6e4 Peter Zijlstra 2013-02-22  62  #error "Vmemmap: No space for nodes field in page flags"
1587db62d8c0db Yu Zhao        2021-04-29  63  #else
bbeae5b05ef6e4 Peter Zijlstra 2013-02-22  64  #define NODES_WIDTH		0
bbeae5b05ef6e4 Peter Zijlstra 2013-02-22  65  #endif
bbeae5b05ef6e4 Peter Zijlstra 2013-02-22  66  

:::::: The code at line 58 was first introduced by commit
:::::: ec1c86b25f4bdd9dce6436c0539d2a6ae676e1c4 mm: multi-gen LRU: groundwork

:::::: 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-05-07  8:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07  8:23 [ardb:for-kernelci 6/18] include/linux/page-flags-layout.h:58:35: error: function-like macro 'pgtable_l5_enabled' is not defined 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