All of lore.kernel.org
 help / color / mirror / Atom feed
* [aa:master 15/20] mm/util.c:738:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean
@ 2021-01-15 11:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-15 11:40 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master
head:   34dd03a2fe9af1f1a9dbd7ec65eb1f247bdfe0db
commit: 4e14c9de85753f6debbd4e6559a3036d99696326 [15/20] mm: thp: make the THP mapcount atomic against __split_huge_pmd_locked()
config: arc-randconfig-r011-20210115 (attached as .config)
compiler: arc-elf-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://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=4e14c9de85753f6debbd4e6559a3036d99696326
        git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
        git fetch --no-tags aa master
        git checkout 4e14c9de85753f6debbd4e6559a3036d99696326
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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

All errors (new ones prefixed by >>):

   mm/util.c: In function 'page_mapping':
   mm/util.c:700:15: warning: variable 'entry' set but not used [-Wunused-but-set-variable]
     700 |   swp_entry_t entry;
         |               ^~~~~
   mm/util.c: In function '__page_mapcount':
>> mm/util.c:738:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
     738 |  seqcount = page_mapcount_seq_begin(page);
         |             ^~~~~~~~~~~~~~~~~~~~~~~
         |             page_mapcount_reset
>> mm/util.c:745:6: error: implicit declaration of function 'page_mapcount_seq_retry'; did you mean 'page_mapcount_reset'? [-Werror=implicit-function-declaration]
     745 |  if (page_mapcount_seq_retry(page, seqcount))
         |      ^~~~~~~~~~~~~~~~~~~~~~~
         |      page_mapcount_reset
   cc1: some warnings being treated as errors


vim +738 mm/util.c

   723	
   724	/* Slow path of page_mapcount() for compound pages */
   725	int __page_mapcount(struct page *page)
   726	{
   727		unsigned long seqcount;
   728		int ret;
   729	
   730		/*
   731		 * For file THP page->_mapcount contains total number of mapping
   732		 * of the page: no need to look into compound_mapcount.
   733		 */
   734		if (!PageAnon(page) && !PageHuge(page))
   735			return atomic_read(&page->_mapcount) + 1;
   736		page = compound_head(page);
   737	again:
 > 738		seqcount = page_mapcount_seq_begin(page);
   739	
   740		ret = atomic_read(&page->_mapcount) + 1;
   741		ret += atomic_read(compound_mapcount_ptr(page)) + 1;
   742		if (PageDoubleMap(page))
   743			ret--;
   744	
 > 745		if (page_mapcount_seq_retry(page, seqcount))
   746			goto again;
   747		return ret;
   748	}
   749	EXPORT_SYMBOL_GPL(__page_mapcount);
   750	

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

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

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

only message in thread, other threads:[~2021-01-15 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-15 11:40 [aa:master 15/20] mm/util.c:738:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean 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.