Hi David,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on kdave/for-next]
[also build test ERROR on ext4/dev fuse/for-next xfs-linux/for-next tip/perf/core
linux/master linus/master v5.12-rc6 next-20210409]
[cannot apply to hnaz-linux-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/David-Howells/mm-Split-page_has_...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: x86_64-randconfig-a005-20210409 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
dd453a1389b6a7e6d9214b449d3c54981b1a89b6)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/0day-ci/linux/commit/a00a255f7bf637156368e8545b2c64e39...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
David-Howells/mm-Split-page_has_private-in-two-to-better-handle-PG_private_2/20210409-051632
git checkout a00a255f7bf637156368e8545b2c64e39c93718b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> mm/memory-failure.c:632:14: error: implicit declaration of
function 'page_has_private' [-Werror,-Wimplicit-function-declaration]
} else if (page_has_private(p) &&
^
1 error generated.
vim +/page_has_private +632 mm/memory-failure.c
dc2a1cbf7d862e9 Wu Fengguang 2009-12-16 620
78bb920344b8a6f Naoya Horiguchi 2017-07-10 621 static int truncate_error_page(struct
page *p, unsigned long pfn,
78bb920344b8a6f Naoya Horiguchi 2017-07-10 622 struct address_space *mapping)
78bb920344b8a6f Naoya Horiguchi 2017-07-10 623 {
78bb920344b8a6f Naoya Horiguchi 2017-07-10 624 int ret = MF_FAILED;
78bb920344b8a6f Naoya Horiguchi 2017-07-10 625
78bb920344b8a6f Naoya Horiguchi 2017-07-10 626 if
(mapping->a_ops->error_remove_page) {
78bb920344b8a6f Naoya Horiguchi 2017-07-10 627 int err =
mapping->a_ops->error_remove_page(mapping, p);
78bb920344b8a6f Naoya Horiguchi 2017-07-10 628
78bb920344b8a6f Naoya Horiguchi 2017-07-10 629 if (err != 0) {
78bb920344b8a6f Naoya Horiguchi 2017-07-10 630 pr_info("Memory failure: %#lx:
Failed to punch page: %d\n",
78bb920344b8a6f Naoya Horiguchi 2017-07-10 631 pfn, err);
78bb920344b8a6f Naoya Horiguchi 2017-07-10 @632 } else if (page_has_private(p)
&&
78bb920344b8a6f Naoya Horiguchi 2017-07-10 633 !try_to_release_page(p, GFP_NOIO))
{
78bb920344b8a6f Naoya Horiguchi 2017-07-10 634 pr_info("Memory failure: %#lx:
failed to release buffers\n",
78bb920344b8a6f Naoya Horiguchi 2017-07-10 635 pfn);
78bb920344b8a6f Naoya Horiguchi 2017-07-10 636 } else {
78bb920344b8a6f Naoya Horiguchi 2017-07-10 637 ret = MF_RECOVERED;
78bb920344b8a6f Naoya Horiguchi 2017-07-10 638 }
78bb920344b8a6f Naoya Horiguchi 2017-07-10 639 } else {
78bb920344b8a6f Naoya Horiguchi 2017-07-10 640 /*
78bb920344b8a6f Naoya Horiguchi 2017-07-10 641 * If the file system doesn't
support it just invalidate
78bb920344b8a6f Naoya Horiguchi 2017-07-10 642 * This fails on dirty or anything with
private pages
78bb920344b8a6f Naoya Horiguchi 2017-07-10 643 */
78bb920344b8a6f Naoya Horiguchi 2017-07-10 644 if (invalidate_inode_page(p))
78bb920344b8a6f Naoya Horiguchi 2017-07-10 645 ret = MF_RECOVERED;
78bb920344b8a6f Naoya Horiguchi 2017-07-10 646 else
78bb920344b8a6f Naoya Horiguchi 2017-07-10 647 pr_info("Memory failure: %#lx:
Failed to invalidate\n",
78bb920344b8a6f Naoya Horiguchi 2017-07-10 648 pfn);
78bb920344b8a6f Naoya Horiguchi 2017-07-10 649 }
78bb920344b8a6f Naoya Horiguchi 2017-07-10 650
78bb920344b8a6f Naoya Horiguchi 2017-07-10 651 return ret;
78bb920344b8a6f Naoya Horiguchi 2017-07-10 652 }
78bb920344b8a6f Naoya Horiguchi 2017-07-10 653
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org