[ardb:arm64-mm-ro-pmds-puds 2/2] arch/arm64/include/asm/pgtable.h:984:30: error: no member named 'p4d' in 'p4d_t'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-mm-ro-pmds-puds
head:   94ed97bda114e544f5563b31ac9babc7508ac535
commit: 94ed97bda114e544f5563b31ac9babc7508ac535 [2/2] WIP
config: arm64-randconfig-r051-20260828 (https://download.01.org/0day-ci/archive/20260828/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260828/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   In file included from arch/arm64/kernel/asm-offsets.c:13:
   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:
>> arch/arm64/include/asm/pgtable.h:984:30: error: no member named 'p4d' in 'p4d_t'
     984 |                 set_readonly_ptval(pa, p4d.p4d);
         |                                        ~~~ ^
   1 error generated.
   make[3]: *** [scripts/Makefile.build:185: arch/arm64/kernel/asm-offsets.s] Error 1
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1414: 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 +984 arch/arm64/include/asm/pgtable.h

   978	
   979	static inline void set_p4d(p4d_t *p4dp, p4d_t p4d)
   980	{
   981		u64 pa;
   982	
   983		if (in_kernel_rodata_lmalias(p4dp, &pa)) {
 > 984			set_readonly_ptval(pa, p4d.p4d);
   985			return;
   986		}
   987	
   988		WRITE_ONCE(*p4dp, p4d);
   989		queue_pte_barriers();
   990	}
   991	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.