From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [aa:master 18/20] include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared'
Date: Sat, 16 Jan 2021 15:19:18 +0800 [thread overview]
Message-ID: <202101161502.sBhLJSqq-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3652 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git master
head: 61cbd7f8bc18730f4aa33c28db2c70b4d9b25768
commit: e81975bed240b9922b1c6cc36c95155b3621fc32 [18/20] gup: FOLL_DESHARE: copy-on-read fault
config: arm-randconfig-r002-20210115 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d7bc3b7ce23b664d6620cdc32370a8614523ca2f)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/commit/?id=e81975bed240b9922b1c6cc36c95155b3621fc32
git remote add aa https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git
git fetch --no-tags aa master
git checkout e81975bed240b9922b1c6cc36c95155b3621fc32
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
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 >>):
In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
--
In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/arm/kernel/asm-offsets.c:12:
>> include/linux/mm.h:2885:10: error: implicit declaration of function 'page_trans_huge_anon_shared' [-Werror,-Wimplicit-function-declaration]
return page_trans_huge_anon_shared(page);
^
1 error generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1206: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/page_trans_huge_anon_shared +2885 include/linux/mm.h
2874
2875 static inline bool gup_page_deshare(unsigned int flags,
2876 struct page *page)
2877 {
2878 if (flags & FOLL_WRITE)
2879 return false;
2880 if (!PageAnon(page))
2881 return false;
2882 if (PageHuge(page))
2883 return false;
2884 if (PageTransHuge(page))
> 2885 return page_trans_huge_anon_shared(page);
2886 /* page_mapcount > 1 */
2887 return atomic_read(&page->_mapcount) > 0;
2888 }
2889
---
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: 27457 bytes --]
reply other threads:[~2021-01-16 7:19 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=202101161502.sBhLJSqq-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.