Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:rseq/cid 47/64] include/linux/mm_types.h:1223:22: error: no member named 'lru_gen' in 'struct mm_struct'
Date: Thu, 16 Oct 2025 04:37:19 +0800	[thread overview]
Message-ID: <202510160434.EYObBtM9-lkp@intel.com> (raw)

Hi Thomas,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rseq/cid
head:   e196d67a03daa4beb27afc2961845664ac3ef3d5
commit: ca9070e3656a97ecc5cfbfd1dd101d98ddef2d36 [47/64] sched/mmcid: Use proper data structures
config: arm64-randconfig-001-20251016 (https://download.01.org/0day-ci/archive/20251016/202510160434.EYObBtM9-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 39f292ffa13d7ca0d1edff27ac8fd55024bb4d19)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251016/202510160434.EYObBtM9-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/202510160434.EYObBtM9-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:13:
   In file included from include/linux/resource_ext.h:11:
   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:22:
   include/linux/mm_types.h:981:20: error: field has incomplete type 'struct mm_mm_cid'
     981 |                 struct mm_mm_cid mm_cid;
         |                                  ^
   include/linux/mm_types.h:981:10: note: forward declaration of 'struct mm_mm_cid'
     981 |                 struct mm_mm_cid mm_cid;
         |                        ^
>> include/linux/mm_types.h:1223:22: error: no member named 'lru_gen' in 'struct mm_struct'
    1223 |         INIT_LIST_HEAD(&mm->lru_gen.list);
         |                         ~~  ^
   include/linux/mm_types.h:1224:6: error: no member named 'lru_gen' in 'struct mm_struct'
    1224 |         mm->lru_gen.bitmap = 0;
         |         ~~  ^
   include/linux/mm_types.h:1237:17: error: no member named 'lru_gen' in 'struct mm_struct'
    1237 |         WRITE_ONCE(mm->lru_gen.bitmap, -1);
         |                    ~~  ^
   include/linux/mm_types.h:1237:17: error: no member named 'lru_gen' in 'struct mm_struct'
    1237 |         WRITE_ONCE(mm->lru_gen.bitmap, -1);
         |                    ~~  ^
   include/linux/mm_types.h:1237:17: error: no member named 'lru_gen' in 'struct mm_struct'
    1237 |         WRITE_ONCE(mm->lru_gen.bitmap, -1);
         |                    ~~  ^
   include/linux/mm_types.h:1237:17: error: no member named 'lru_gen' in 'struct mm_struct'
    1237 |         WRITE_ONCE(mm->lru_gen.bitmap, -1);
         |                    ~~  ^
   include/linux/mm_types.h:1237:17: error: no member named 'lru_gen' in 'struct mm_struct'
    1237 |         WRITE_ONCE(mm->lru_gen.bitmap, -1);
         |                    ~~  ^
   include/linux/mm_types.h:1237:17: error: no member named 'lru_gen' in 'struct mm_struct'
    1237 |         WRITE_ONCE(mm->lru_gen.bitmap, -1);
         |                    ~~  ^
   include/linux/mm_types.h:1237:17: error: no member named 'lru_gen' in 'struct mm_struct'
    1237 |         WRITE_ONCE(mm->lru_gen.bitmap, -1);
         |                    ~~  ^
   include/linux/mm_types.h:1281:27: error: no member named 'mm_mt' in 'struct mm_struct'
    1281 |         mas_init(&vmi->mas, &mm->mm_mt, addr);
         |                              ~~  ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:16:
   In file included from include/linux/energy_model.h:7:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:12:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:21:
   In file included from include/linux/xarray.h:21:
   In file included from include/linux/sched/mm.h:11:
   include/linux/sched/coredump.h:25:28: error: no member named 'flags' in 'struct mm_struct'
      25 |         return __get_dumpable(mm->flags);
         |                               ~~  ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:16:
   In file included from include/linux/energy_model.h:7:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:12:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:21:
   In file included from include/linux/xarray.h:21:
   include/linux/sched/mm.h:37:18: error: no member named 'mm_count' in 'struct mm_struct'
      37 |         atomic_inc(&mm->mm_count);
         |                     ~~  ^
   include/linux/sched/mm.h:54:40: error: no member named 'mm_count' in 'struct mm_struct'
      54 |         if (unlikely(atomic_dec_and_test(&mm->mm_count)))
         |                                           ~~  ^
   include/linux/sched/mm.h:133:18: error: no member named 'mm_users' in 'struct mm_struct'
     133 |         atomic_inc(&mm->mm_users);
         |                     ~~  ^
   include/linux/sched/mm.h:138:34: error: no member named 'mm_users' in 'struct mm_struct'
     138 |         return atomic_inc_not_zero(&mm->mm_users);
         |                                     ~~  ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
   In file included from arch/arm64/include/asm/elf.h:141:
   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] |
         |                         ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
--
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
   In file included from arch/arm64/include/asm/elf.h:141:
   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:198:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     198 |         case 2: set->sig[1] = 0;
         |                 ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
   In file included from arch/arm64/include/asm/elf.h:141:
   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:211:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     211 |         case 2: set->sig[1] = -1;
         |                 ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
   In file included from arch/arm64/include/asm/elf.h:141:
   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:242:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     242 |         case 2: set->sig[1] = 0;
         |                 ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:14:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
   In file included from arch/arm64/include/asm/elf.h:141:
   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:255:10: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     255 |         case 2: set->sig[1] = -1;
         |                 ^        ~
   include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
      62 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from arch/arm64/kernel/asm-offsets.c:12:
   In file included from include/linux/ftrace.h:10:
   In file included from include/linux/trace_recursion.h:5:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/arm64/include/asm/hardirq.h:17:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/arm64/include/asm/io.h:12:
   In file included from include/linux/pgtable.h:6:
   In file included from arch/arm64/include/asm/pgtable.h:15:
   In file included from arch/arm64/include/asm/tlbflush.h:16:
   In file included from include/linux/mmu_notifier.h:8:
   include/linux/mmap_lock.h:71:25: error: no member named 'mmap_lock' in 'struct mm_struct'
      71 |         rwsem_assert_held(&mm->mmap_lock);
         |                            ~~  ^
   include/linux/mmap_lock.h:76:31: error: no member named 'mmap_lock' in 'struct mm_struct'
      76 |         rwsem_assert_held_write(&mm->mmap_lock);
         |                                  ~~  ^
>> include/linux/mmap_lock.h:83:21: error: no member named 'mm_lock_seq' in 'struct mm_struct'
      83 |         seqcount_init(&mm->mm_lock_seq);
         |                        ~~  ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   49 warnings and 20 errors generated.
   make[3]: *** [scripts/Makefile.build:182: arch/arm64/kernel/asm-offsets.s] Error 1 shuffle=3959790598
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1282: prepare0] Error 2 shuffle=3959790598
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=3959790598
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2 shuffle=3959790598
   make: Target 'prepare' not remade because of errors.


vim +1223 include/linux/mm_types.h

bd74fdaea146029 Yu Zhao 2022-09-18  1220  
bd74fdaea146029 Yu Zhao 2022-09-18  1221  static inline void lru_gen_init_mm(struct mm_struct *mm)
bd74fdaea146029 Yu Zhao 2022-09-18  1222  {
bd74fdaea146029 Yu Zhao 2022-09-18 @1223  	INIT_LIST_HEAD(&mm->lru_gen.list);
bd74fdaea146029 Yu Zhao 2022-09-18  1224  	mm->lru_gen.bitmap = 0;
bd74fdaea146029 Yu Zhao 2022-09-18  1225  #ifdef CONFIG_MEMCG
bd74fdaea146029 Yu Zhao 2022-09-18  1226  	mm->lru_gen.memcg = NULL;
bd74fdaea146029 Yu Zhao 2022-09-18  1227  #endif
bd74fdaea146029 Yu Zhao 2022-09-18  1228  }
bd74fdaea146029 Yu Zhao 2022-09-18  1229  

:::::: The code at line 1223 was first introduced by commit
:::::: bd74fdaea146029e4fa12c6de89adbe0779348a9 mm: multi-gen LRU: support page table walks

:::::: 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-10-15 20:37 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=202510160434.EYObBtM9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tglx@linutronix.de \
    /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