tree:
https://github.com/jcmvbkbc/linux-xtensa xtensa-5.12-rochester
head: c590cacf4bfbe4167acb4b5d6c0fd5c5df0ba38a
commit: 2937756c60b8d00662cf5ca679fc9acfd0ecd920 [20/21] WIP: xtensa: add dump_tlb
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/jcmvbkbc/linux-xtensa/commit/2937756c60b8d00662cf5ca67...
git remote add jcmvbkbc-xtensa
https://github.com/jcmvbkbc/linux-xtensa
git fetch --no-tags jcmvbkbc-xtensa xtensa-5.12-rochester
git checkout 2937756c60b8d00662cf5ca679fc9acfd0ecd920
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/xtensa/mm/tlb.c:212:6: warning: no previous prototype for
'dump_tlb_entry' [-Wmissing-prototypes]
212 | void
dump_tlb_entry(unsigned w, unsigned e, bool dtlb)
| ^~~~~~~~~~~~~~
> arch/xtensa/mm/tlb.c:225:6: warning: no previous prototype for
'dump_tlb' [-Wmissing-prototypes]
225 | void dump_tlb(void)
| ^~~~~~~~
arch/xtensa/mm/tlb.c:286:6: warning: no previous prototype for
'check_tlb_sanity' [-Wmissing-prototypes]
286 | void check_tlb_sanity(void)
| ^~~~~~~~~~~~~~~~
vim +/dump_tlb_entry +212 arch/xtensa/mm/tlb.c
211
212 void dump_tlb_entry(unsigned w, unsigned e, bool dtlb)
213 {
214 unsigned tlbidx = w | (e << PAGE_SHIFT);
215 unsigned r0 = dtlb ?
216 read_dtlb_virtual(tlbidx) : read_itlb_virtual(tlbidx);
217 unsigned r1 = dtlb ?
218 read_dtlb_translation(tlbidx) : read_itlb_translation(tlbidx);
219 unsigned vpn = (r0 & PAGE_MASK) | (e << PAGE_SHIFT);
220
221 pr_info("%cTLB[%d][%d]: v=%08x, p=%08x, vaddr=%08x\n",
222 dtlb ? 'D' : 'I', w, e, r0, r1, vpn);
223 }
224
225 void dump_tlb(void)
226 {
227 unsigned w, e;
228
229 for (w = 7; w < 9; ++w)
230 for (e = 0; e < 4; ++e)
231 dump_tlb_entry(w, e, 1);
232 }
233
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org