* [davidhildenbrand:folded_pgtable 14/32] arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared; did you mean 'pmdp_k'?
@ 2026-07-09 9:47 kernel test robot
2026-07-09 10:23 ` Yeoreum Yun
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-07-09 9:47 UTC (permalink / raw)
To: Yeoreum Yun; +Cc: oe-kbuild-all, David Hildenbrand (Arm)
tree: https://github.com/davidhildenbrand/linux folded_pgtable
head: 0551ca68b7552b7d71f1d2882635809a573d6c79
commit: 0763dc8f9d1187b3697780a0773456af1522e2fa [14/32] csky: mm: use proper set_pXd() for folded patable in vmalloc_fault()
config: csky-allnoconfig (https://download.01.org/0day-ci/archive/20260709/202607091707.RCUR8gr5-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091707.RCUR8gr5-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/202607091707.RCUR8gr5-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/csky/mm/fault.c: In function 'vmalloc_fault':
>> arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared (first use in this function); did you mean 'pmdp_k'?
139 | pgdp_k = (pmd_t *)(init_mm.pgd + offset);
| ^~~~~~
| pmdp_k
arch/csky/mm/fault.c:139:9: note: each undeclared identifier is reported only once for each function it appears in
vim +139 arch/csky/mm/fault.c
114
115 static inline void vmalloc_fault(struct pt_regs *regs, int code, unsigned long addr)
116 {
117 pmd_t *pmdp, *pmdp_k, pmd_k;
118 pte_t *ptep_k;
119 int offset;
120
121 BUILD_BUG_ON(CONFIG_PGTABLE_LEVELS != 2);
122
123 /* User mode accesses just cause a SIGSEGV */
124 if (user_mode(regs)) {
125 do_trap(regs, SIGSEGV, code, addr);
126 return;
127 }
128
129 /*
130 * Synchronize this task's top level page-table
131 * with the 'reference' page table.
132 *
133 * Do _not_ use "tsk" here. We might be inside
134 * an interrupt in the middle of a task switch..
135 */
136 offset = pgd_index(addr);
137
138 pmdp = (pmd_t *)(get_pgd() + offset);
> 139 pgdp_k = (pmd_t *)(init_mm.pgd + offset);
140 pmd_k = pmdp_get(pmdp_k);
141 if (!pmd_present(pmd_k)) {
142 no_context(regs, addr);
143 return;
144 }
145
146 set_pmd(pmdp, pmd_k);
147
148 ptep_k = pte_offset_kernel(pmdp_k, addr);
149 if (!pte_present(ptep_get(ptep_k))) {
150 no_context(regs, addr);
151 return;
152 }
153
154 flush_tlb_one(addr);
155 }
156
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [davidhildenbrand:folded_pgtable 14/32] arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared; did you mean 'pmdp_k'?
2026-07-09 9:47 [davidhildenbrand:folded_pgtable 14/32] arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared; did you mean 'pmdp_k'? kernel test robot
@ 2026-07-09 10:23 ` Yeoreum Yun
0 siblings, 0 replies; 2+ messages in thread
From: Yeoreum Yun @ 2026-07-09 10:23 UTC (permalink / raw)
To: kernel test robot; +Cc: oe-kbuild-all, David Hildenbrand (Arm)
> tree: https://github.com/davidhildenbrand/linux folded_pgtable
> head: 0551ca68b7552b7d71f1d2882635809a573d6c79
> commit: 0763dc8f9d1187b3697780a0773456af1522e2fa [14/32] csky: mm: use proper set_pXd() for folded patable in vmalloc_fault()
> config: csky-allnoconfig (https://download.01.org/0day-ci/archive/20260709/202607091707.RCUR8gr5-lkp@intel.com/config)
> compiler: csky-linux-gcc (GCC) 16.1.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260709/202607091707.RCUR8gr5-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/202607091707.RCUR8gr5-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> arch/csky/mm/fault.c: In function 'vmalloc_fault':
> >> arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared (first use in this function); did you mean 'pmdp_k'?
> 139 | pgdp_k = (pmd_t *)(init_mm.pgd + offset);
> | ^~~~~~
> | pmdp_k
> arch/csky/mm/fault.c:139:9: note: each undeclared identifier is reported only once for each function it appears in
Grr. I missed it. I'll fix in next version.
Thanks for report!
[...]
--
Sincerely,
Yeoreum Yun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-09 10:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-09 9:47 [davidhildenbrand:folded_pgtable 14/32] arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared; did you mean 'pmdp_k'? kernel test robot
2026-07-09 10:23 ` Yeoreum Yun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.