* Re: [PATCH v2] mm/hugetlb: convert get_hwpoison_huge_page() to folios
[not found] <20230118174039.14247-1-sidhartha.kumar@oracle.com>
@ 2023-01-19 0:34 ` kernel test robot
2023-01-19 0:55 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-01-19 0:34 UTC (permalink / raw)
To: Sidhartha Kumar; +Cc: llvm, oe-kbuild-all
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] mm/hugetlb: convert get_hwpoison_huge_page() to folios
[not found] <20230118174039.14247-1-sidhartha.kumar@oracle.com>
2023-01-19 0:34 ` [PATCH v2] mm/hugetlb: convert get_hwpoison_huge_page() to folios kernel test robot
@ 2023-01-19 0:55 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-01-19 0:55 UTC (permalink / raw)
To: Sidhartha Kumar; +Cc: llvm, oe-kbuild-all
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: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20230119/202301190833.olO4HOkZ-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://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=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 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: implicit declaration of function 'get_hwpoison_hugetlb_folio' is invalid in C99 [-Werror,-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: implicit declaration of function 'get_hwpoison_hugetlb_folio' is invalid in C99 [-Werror,-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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-19 0:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230118174039.14247-1-sidhartha.kumar@oracle.com>
2023-01-19 0:34 ` [PATCH v2] mm/hugetlb: convert get_hwpoison_huge_page() to folios kernel test robot
2023-01-19 0:55 ` kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox