[ardb:arm64-mm-ro-pmds-puds 2/2] arch/arm64/include/asm/pgtable.h:901:44: error: 'pud_t' has no member named 'pud'; did you mean 'p4d'?

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-001 (https://download.01.org/0day-ci/archive/20260828/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 14.3.0
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 include/linux/pgtable.h:6,
                    from include/linux/kasan.h:38,
                    from include/linux/slab.h:276,
                    from include/linux/resource_ext.h:11,
                    from include/linux/acpi.h:14,
                    from include/acpi/apei.h:9,
                    from include/acpi/ghes.h:5,
                    from include/linux/arm_sdei.h:8,
                    from arch/arm64/kernel/asm-offsets.c:11:
   arch/arm64/include/asm/pgtable.h: In function 'set_pud':
>> arch/arm64/include/asm/pgtable.h:901:44: error: 'pud_t' has no member named 'pud'; did you mean 'p4d'?
     901 |                 set_readonly_ptval(pa, pud.pud);
         |                                            ^~~
         |                                            p4d
   make[3]: *** [scripts/Makefile.build:185: arch/arm64/kernel/asm-offsets.s] Error 1 shuffle=2277844341
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1414: prepare0] Error 2 shuffle=2277844341
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=2277844341
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2 shuffle=2277844341
   make: Target 'prepare' not remade because of errors.


vim +901 arch/arm64/include/asm/pgtable.h

   895	
   896	static inline void set_pud(pud_t *pudp, pud_t pud)
   897	{
   898		u64 pa;
   899	
   900		if (in_kernel_rodata_lmalias(pudp, &pa)) {
 > 901			set_readonly_ptval(pa, pud.pud);
   902			return;
   903		}
   904	
   905		WRITE_ONCE(*pudp, pud);
   906	
   907		if (pud_valid(pud))
   908			queue_pte_barriers();
   909	}
   910	

--
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.