From: kernel test robot <lkp@intel.com>
To: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v2] mm/hugetlb: convert get_hwpoison_huge_page() to folios
Date: Thu, 19 Jan 2023 08:34:49 +0800 [thread overview]
Message-ID: <202301190837.bTrbAr7a-lkp@intel.com> (raw)
In-Reply-To: <20230118174039.14247-1-sidhartha.kumar@oracle.com>
Hi Sidhartha,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Sidhartha-Kumar/mm-hugetlb-convert-get_hwpoison_huge_page-to-folios/20230119-014337
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20230118174039.14247-1-sidhartha.kumar%40oracle.com
patch subject: [PATCH v2] mm/hugetlb: convert get_hwpoison_huge_page() to folios
config: arm64-buildonly-randconfig-r006-20230118 (https://download.01.org/0day-ci/archive/20230119/202301190837.bTrbAr7a-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/6704f4eff6775ce3ccc4156b41b9d1c4d091eb14
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Sidhartha-Kumar/mm-hugetlb-convert-get_hwpoison_huge_page-to-folios/20230119-014337
git checkout 6704f4eff6775ce3ccc4156b41b9d1c4d091eb14
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> mm/memory-failure.c:1335:8: error: call to undeclared function 'get_hwpoison_hugetlb_folio'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, false);
^
mm/memory-failure.c:1335:8: note: did you mean 'get_hwpoison_huge_page'?
include/linux/hugetlb.h:420:19: note: 'get_hwpoison_huge_page' declared here
static inline int get_hwpoison_huge_page(struct page *page, bool *hugetlb, bool unpoison)
^
mm/memory-failure.c:1425:8: error: call to undeclared function 'get_hwpoison_hugetlb_folio'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, true);
^
2 errors generated.
vim +/get_hwpoison_hugetlb_folio +1335 mm/memory-failure.c
1328
1329 static int __get_hwpoison_page(struct page *page, unsigned long flags)
1330 {
1331 struct folio *folio = page_folio(page);
1332 int ret = 0;
1333 bool hugetlb = false;
1334
> 1335 ret = get_hwpoison_hugetlb_folio(folio, &hugetlb, false);
1336 if (hugetlb)
1337 return ret;
1338
1339 /*
1340 * This check prevents from calling folio_try_get() for any
1341 * unsupported type of folio in order to reduce the risk of unexpected
1342 * races caused by taking a folio refcount.
1343 */
1344 if (!HWPoisonHandlable(&folio->page, flags))
1345 return -EBUSY;
1346
1347 if (folio_try_get(folio)) {
1348 if (folio == page_folio(page))
1349 return 1;
1350
1351 pr_info("%#lx cannot catch tail\n", page_to_pfn(page));
1352 folio_put(folio);
1353 }
1354
1355 return 0;
1356 }
1357
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
next prev parent reply other threads:[~2023-01-19 0:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-18 17:40 [PATCH v2] mm/hugetlb: convert get_hwpoison_huge_page() to folios Sidhartha Kumar
2023-01-18 17:52 ` Matthew Wilcox
2023-01-19 0:34 ` kernel test robot [this message]
2023-01-19 0:55 ` kernel test robot
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=202301190837.bTrbAr7a-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sidhartha.kumar@oracle.com \
/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.