From: kernel test robot <lkp@intel.com>
To: Yeoreum Yun <yeoreum.yun@arm.com>
Cc: oe-kbuild-all@lists.linux.dev,
"David Hildenbrand (Arm)" <david@kernel.org>
Subject: [davidhildenbrand:folded_pgtable 14/32] arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared; did you mean 'pmdp_k'?
Date: Thu, 09 Jul 2026 17:47:35 +0800 [thread overview]
Message-ID: <202607091707.RCUR8gr5-lkp@intel.com> (raw)
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
next reply other threads:[~2026-07-09 9:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 9:47 kernel test robot [this message]
2026-07-09 10:23 ` [davidhildenbrand:folded_pgtable 14/32] arch/csky/mm/fault.c:139:9: error: 'pgdp_k' undeclared; did you mean 'pmdp_k'? Yeoreum Yun
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=202607091707.RCUR8gr5-lkp@intel.com \
--to=lkp@intel.com \
--cc=david@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yeoreum.yun@arm.com \
/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 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.