From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [aa:master 15/20] mm/util.c:738:13: error: implicit declaration of function 'page_mapcount_seq_begin'; did you mean
Date: Fri, 15 Jan 2021 19:40:43 +0800 [thread overview]
Message-ID: <202101151935.LIJrfUNS-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-01-15 11:40 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=202101151935.LIJrfUNS-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 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.