Re: [PATCH v13 057/137] mm/swap: Add folio_activate()

From: kernel test robot
Date: Mon Jul 12 2021 - 03:33:33 EST


Hi "Matthew,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.14-rc1]
[cannot apply to hnaz-linux-mm/master xfs-linux/for-next tip/perf/core next-20210712]
[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/Matthew-Wilcox-Oracle/Memory-folios/20210712-122232
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e73f0f0ee7541171d89f2e2491130c7771ba58d3
config: powerpc-randconfig-r013-20210712 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/0day-ci/linux/commit/69f2f8a9f70d60d052538c9c22930e0c630de172
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Memory-folios/20210712-122232
git checkout 69f2f8a9f70d60d052538c9c22930e0c630de172
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

>> mm/swap.c:385:12: error: implicit declaration of function 'folio_lock_lruvec_irq' [-Werror,-Wimplicit-function-declaration]
lruvec = folio_lock_lruvec_irq(folio);
^
>> mm/swap.c:385:10: warning: incompatible integer to pointer conversion assigning to 'struct lruvec *' from 'int' [-Wint-conversion]
lruvec = folio_lock_lruvec_irq(folio);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.


vim +/folio_lock_lruvec_irq +385 mm/swap.c

379
380 static void folio_activate(struct folio *folio)
381 {
382 struct lruvec *lruvec;
383
384 if (folio_test_clear_lru_flag(folio)) {
> 385 lruvec = folio_lock_lruvec_irq(folio);
386 __folio_activate(folio, lruvec);
387 unlock_page_lruvec_irq(lruvec);
388 folio_set_lru_flag(folio);
389 }
390 }
391 #endif
392

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip