mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [jcmvbkbc-xtensa:xtensa-5.19-rochester 12/13] arch/xtensa/mm/tlb.c:218:6: warning: no previous prototype for 'dump_tlb_entry'
Date: Mon, 25 Jul 2022 03:54:22 +0800	[thread overview]
Message-ID: <202207250312.HBDnpUhY-lkp@intel.com> (raw)

tree:   https://github.com/jcmvbkbc/linux-xtensa xtensa-5.19-rochester
head:   a9635269505502dd939295e872fd5e6933ee9876
commit: 50e205d64d5f6b858c9b1447e258af4ad0d80b42 [12/13] WIP: xtensa: add dump_tlb
config: xtensa-buildonly-randconfig-r004-20220718 (https://download.01.org/0day-ci/archive/20220725/202207250312.HBDnpUhY-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 12.1.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/50e205d64d5f6b858c9b1447e258af4ad0d80b42
        git remote add jcmvbkbc-xtensa https://github.com/jcmvbkbc/linux-xtensa
        git fetch --no-tags jcmvbkbc-xtensa xtensa-5.19-rochester
        git checkout 50e205d64d5f6b858c9b1447e258af4ad0d80b42
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=xtensa SHELL=/bin/bash arch/xtensa/mm/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> arch/xtensa/mm/tlb.c:218:6: warning: no previous prototype for 'dump_tlb_entry' [-Wmissing-prototypes]
     218 | void dump_tlb_entry(unsigned w, unsigned e, bool dtlb)
         |      ^~~~~~~~~~~~~~
>> arch/xtensa/mm/tlb.c:231:6: warning: no previous prototype for 'dump_tlb' [-Wmissing-prototypes]
     231 | void dump_tlb(void)
         |      ^~~~~~~~
   arch/xtensa/mm/tlb.c:292:6: warning: no previous prototype for 'check_tlb_sanity' [-Wmissing-prototypes]
     292 | void check_tlb_sanity(void)
         |      ^~~~~~~~~~~~~~~~


vim +/dump_tlb_entry +218 arch/xtensa/mm/tlb.c

   217	
 > 218	void dump_tlb_entry(unsigned w, unsigned e, bool dtlb)
   219	{
   220		unsigned tlbidx = w | (e << PAGE_SHIFT);
   221		unsigned r0 = dtlb ?
   222			read_dtlb_virtual(tlbidx) : read_itlb_virtual(tlbidx);
   223		unsigned r1 = dtlb ?
   224			read_dtlb_translation(tlbidx) : read_itlb_translation(tlbidx);
   225		unsigned vpn = (r0 & PAGE_MASK) | (e << PAGE_SHIFT);
   226	
   227		pr_info("%cTLB[%d][%d]: v=%08x, p=%08x, vaddr=%08x\n",
   228			dtlb ? 'D' : 'I', w, e, r0, r1, vpn);
   229	}
   230	
 > 231	void dump_tlb(void)
   232	{
   233		unsigned w, e;
   234	
   235		for (w = 7; w < 9; ++w)
   236			for (e = 0; e < 4; ++e)
   237				dump_tlb_entry(w, e, 1);
   238	}
   239	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-07-24 19:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202207250312.HBDnpUhY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jcmvbkbc@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®