[kvms390:hlp_vsie 11/15] arch/s390/mm/gmap.c:2183:6: warning: no previous prototype for 'gmap_shadow_pgt_lookup'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git hlp_vsie
head:   c953a69b1dd683366b955620b839b3c2a09b3595
commit: 505c353437dc7d73370468ec77fd159fad9916fb [11/15] s390/mm: Add gmap shadowing for large pmds
config: s390-allyesconfig (attached as .config)
compiler: s390-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
        git checkout 505c353437dc7d73370468ec77fd159fad9916fb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> arch/s390/mm/gmap.c:2183:6: warning: no previous prototype for 'gmap_shadow_pgt_lookup' [-Wmissing-prototypes]
    2183 | void gmap_shadow_pgt_lookup(struct gmap *sg, unsigned long *sge,
         |      ^~~~~~~~~~~~~~~~~~~~~~

vim +/gmap_shadow_pgt_lookup +2183 arch/s390/mm/gmap.c

  2169	
  2170	/**
  2171	 * gmap_shadow_lookup_pgtable - find a shadow page table
  2172	 * @sg: pointer to the shadow guest address space structure
  2173	 * @saddr: the address in the shadow guest address space
  2174	 * @pgt: parent gmap address of the page table to get shadowed
  2175	 * @dat_protection: if the pgtable is marked as protected by dat
  2176	 * @fake: pgt references contiguous guest memory block, not a pgtable
  2177	 *
  2178	 * Returns 0 if the shadow page table was found and -EAGAIN if the page
  2179	 * table was not found.
  2180	 *
  2181	 * Called with sg->mm->mmap_lock in read.
  2182	 */
> 2183	void gmap_shadow_pgt_lookup(struct gmap *sg, unsigned long *sge,
  2184				    unsigned long saddr, unsigned long *pgt,
  2185				    int *dat_protection, int *fake)
  2186	{
  2187		struct page *page;
  2188	
  2189		/* Shadow page tables are full pages (pte+pgste) */
  2190		page = pfn_to_page(*sge >> PAGE_SHIFT);
  2191		*pgt = page->index & ~GMAP_SHADOW_FAKE_TABLE;
  2192		*dat_protection = !!(*sge & _SEGMENT_ENTRY_PROTECT);
  2193		*fake = !!(page->index & GMAP_SHADOW_FAKE_TABLE);
  2194	}
  2195	EXPORT_SYMBOL_GPL(gmap_shadow_pgt_lookup);
  2196	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux