[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-s390
Subject:    [kvms390:hlp_vsie 11/15] arch/s390/mm/gmap.c:2183:6: warning: no previous prototype for function 'gm
From:       kernel test robot <lkp () intel ! com>
Date:       2020-07-30 23:30:07
Message-ID: 202007310703.gUxEJxCK%lkp () intel ! com
[Download RAW message or body]


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-randconfig-r025-20200730 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project \
6700f4b9fe6321ef704efa4890af5bc351a124f0) 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
        # install s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        git checkout 505c353437dc7d73370468ec77fd159fad9916fb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390 

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/s390/mm/gmap.c:2183:6: warning: no previous prototype for function \
> > 'gmap_shadow_pgt_lookup' [-Wmissing-prototypes]
   void gmap_shadow_pgt_lookup(struct gmap *sg, unsigned long *sge,
        ^
   arch/s390/mm/gmap.c:2183:1: note: declare 'static' if the function is not intended \
to be used outside of this translation unit  void gmap_shadow_pgt_lookup(struct gmap \
*sg, unsigned long *sge,  ^
   static 
   1 warning generated.

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@lists.01.org


[".config.gz" (application/gzip)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic