lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207250312.HBDnpUhY-lkp@intel.com>
Date:   Mon, 25 Jul 2022 03:54:22 +0800
From:   kernel test robot <lkp@...el.com>
To:     Max Filippov <jcmvbkbc@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.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'

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ