All of lore.kernel.org
 help / color / mirror / Atom feed
* [jcmvbkbc-xtensa:xtensa-5.12-rochester 20/21] arch/xtensa/mm/tlb.c:212:6: warning: no previous prototype for 'dump_tlb_entry'
@ 2021-03-10  4:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-10  4:35 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2529 bytes --]

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/2937756c60b8d00662cf5ca679fc9acfd0ecd920
        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@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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 67066 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-10  4:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10  4:35 [jcmvbkbc-xtensa:xtensa-5.12-rochester 20/21] arch/xtensa/mm/tlb.c:212:6: warning: no previous prototype for 'dump_tlb_entry' kernel test robot

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.