* Re: [PATCH v2 02/19] mm: Convert all PageMovable users to movable_operations
[not found] <20220608150249.3033815-3-willy@infradead.org>
@ 2022-06-09 15:27 ` kernel test robot
2022-06-09 18:46 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-06-09 15:27 UTC (permalink / raw)
To: Matthew Wilcox (Oracle); +Cc: llvm, kbuild-all
Hi "Matthew,
I love your patch! Perhaps something to improve:
[auto build test WARNING on jaegeuk-f2fs/dev-test]
[cannot apply to trondmy-nfs/linux-next xfs-linux/for-next next-20220609]
[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/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220608-231043
base: https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev-test
config: s390-randconfig-r036-20220608 (https://download.01.org/0day-ci/archive/20220609/202206092341.s0Iay4wA-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b92436efcb7813fc481b30f2593a4907568d917a)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/7fd2c06d9eaa28dfc922d77aeb62e6454ed7d831
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220608-231043
git checkout 7fd2c06d9eaa28dfc922d77aeb62e6454ed7d831
# 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=s390 SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> mm/z3fold.c:1505:24: warning: variable 'new_mapping' set but not used [-Wunused-but-set-variable]
struct address_space *new_mapping;
^
1 warning generated.
vim +/new_mapping +1505 mm/z3fold.c
1f862989b04ade Vitaly Wool 2019-05-13 1499
7fd2c06d9eaa28 Matthew Wilcox (Oracle 2022-06-08 1500) static int z3fold_page_migrate(struct page *newpage, struct page *page,
7fd2c06d9eaa28 Matthew Wilcox (Oracle 2022-06-08 1501) enum migrate_mode mode)
1f862989b04ade Vitaly Wool 2019-05-13 1502 {
1f862989b04ade Vitaly Wool 2019-05-13 1503 struct z3fold_header *zhdr, *new_zhdr;
1f862989b04ade Vitaly Wool 2019-05-13 1504 struct z3fold_pool *pool;
1f862989b04ade Vitaly Wool 2019-05-13 @1505 struct address_space *new_mapping;
1f862989b04ade Vitaly Wool 2019-05-13 1506
1f862989b04ade Vitaly Wool 2019-05-13 1507 VM_BUG_ON_PAGE(!PageMovable(page), page);
1f862989b04ade Vitaly Wool 2019-05-13 1508 VM_BUG_ON_PAGE(!PageIsolated(page), page);
dcf5aedb24f899 Vitaly Wool 2020-12-14 1509 VM_BUG_ON_PAGE(!test_bit(PAGE_CLAIMED, &page->private), page);
810481a2460891 Henry Burns 2019-07-11 1510 VM_BUG_ON_PAGE(!PageLocked(newpage), newpage);
1f862989b04ade Vitaly Wool 2019-05-13 1511
1f862989b04ade Vitaly Wool 2019-05-13 1512 zhdr = page_address(page);
1f862989b04ade Vitaly Wool 2019-05-13 1513 pool = zhdr_to_pool(zhdr);
1f862989b04ade Vitaly Wool 2019-05-13 1514
dcf5aedb24f899 Vitaly Wool 2020-12-14 1515 if (!z3fold_page_trylock(zhdr))
1f862989b04ade Vitaly Wool 2019-05-13 1516 return -EAGAIN;
4a3ac9311dac38 Vitaly Wool 2019-11-30 1517 if (zhdr->mapped_count != 0 || zhdr->foreign_handles != 0) {
dcf5aedb24f899 Vitaly Wool 2020-12-14 1518 clear_bit(PAGE_CLAIMED, &page->private);
4a1c3839108afc Miaohe Lin 2022-04-29 1519 z3fold_page_unlock(zhdr);
1f862989b04ade Vitaly Wool 2019-05-13 1520 return -EBUSY;
1f862989b04ade Vitaly Wool 2019-05-13 1521 }
c92d2f38563db2 Henry Burns 2019-07-16 1522 if (work_pending(&zhdr->work)) {
c92d2f38563db2 Henry Burns 2019-07-16 1523 z3fold_page_unlock(zhdr);
c92d2f38563db2 Henry Burns 2019-07-16 1524 return -EAGAIN;
c92d2f38563db2 Henry Burns 2019-07-16 1525 }
1f862989b04ade Vitaly Wool 2019-05-13 1526 new_zhdr = page_address(newpage);
1f862989b04ade Vitaly Wool 2019-05-13 1527 memcpy(new_zhdr, zhdr, PAGE_SIZE);
1f862989b04ade Vitaly Wool 2019-05-13 1528 newpage->private = page->private;
943fb61dd66f47 Miaohe Lin 2022-04-29 1529 set_bit(PAGE_MIGRATED, &page->private);
1f862989b04ade Vitaly Wool 2019-05-13 1530 z3fold_page_unlock(zhdr);
1f862989b04ade Vitaly Wool 2019-05-13 1531 spin_lock_init(&new_zhdr->page_lock);
c92d2f38563db2 Henry Burns 2019-07-16 1532 INIT_WORK(&new_zhdr->work, compact_page_work);
c92d2f38563db2 Henry Burns 2019-07-16 1533 /*
c92d2f38563db2 Henry Burns 2019-07-16 1534 * z3fold_page_isolate() ensures that new_zhdr->buddy is empty,
c92d2f38563db2 Henry Burns 2019-07-16 1535 * so we only have to reinitialize it.
c92d2f38563db2 Henry Burns 2019-07-16 1536 */
c92d2f38563db2 Henry Burns 2019-07-16 1537 INIT_LIST_HEAD(&new_zhdr->buddy);
1f862989b04ade Vitaly Wool 2019-05-13 1538 new_mapping = page_mapping(page);
1f862989b04ade Vitaly Wool 2019-05-13 1539 __ClearPageMovable(page);
1f862989b04ade Vitaly Wool 2019-05-13 1540
1f862989b04ade Vitaly Wool 2019-05-13 1541 get_page(newpage);
1f862989b04ade Vitaly Wool 2019-05-13 1542 z3fold_page_lock(new_zhdr);
1f862989b04ade Vitaly Wool 2019-05-13 1543 if (new_zhdr->first_chunks)
1f862989b04ade Vitaly Wool 2019-05-13 1544 encode_handle(new_zhdr, FIRST);
1f862989b04ade Vitaly Wool 2019-05-13 1545 if (new_zhdr->last_chunks)
1f862989b04ade Vitaly Wool 2019-05-13 1546 encode_handle(new_zhdr, LAST);
1f862989b04ade Vitaly Wool 2019-05-13 1547 if (new_zhdr->middle_chunks)
1f862989b04ade Vitaly Wool 2019-05-13 1548 encode_handle(new_zhdr, MIDDLE);
1f862989b04ade Vitaly Wool 2019-05-13 1549 set_bit(NEEDS_COMPACTING, &newpage->private);
1f862989b04ade Vitaly Wool 2019-05-13 1550 new_zhdr->cpu = smp_processor_id();
1f862989b04ade Vitaly Wool 2019-05-13 1551 spin_lock(&pool->lock);
1f862989b04ade Vitaly Wool 2019-05-13 1552 list_add(&newpage->lru, &pool->lru);
1f862989b04ade Vitaly Wool 2019-05-13 1553 spin_unlock(&pool->lock);
7fd2c06d9eaa28 Matthew Wilcox (Oracle 2022-06-08 1554) __SetPageMovable(newpage, &z3fold_mops);
1f862989b04ade Vitaly Wool 2019-05-13 1555 z3fold_page_unlock(new_zhdr);
1f862989b04ade Vitaly Wool 2019-05-13 1556
1f862989b04ade Vitaly Wool 2019-05-13 1557 queue_work_on(new_zhdr->cpu, pool->compact_wq, &new_zhdr->work);
1f862989b04ade Vitaly Wool 2019-05-13 1558
943fb61dd66f47 Miaohe Lin 2022-04-29 1559 /* PAGE_CLAIMED and PAGE_MIGRATED are cleared now. */
943fb61dd66f47 Miaohe Lin 2022-04-29 1560 page->private = 0;
1f862989b04ade Vitaly Wool 2019-05-13 1561 put_page(page);
1f862989b04ade Vitaly Wool 2019-05-13 1562 return 0;
1f862989b04ade Vitaly Wool 2019-05-13 1563 }
1f862989b04ade Vitaly Wool 2019-05-13 1564
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2 02/19] mm: Convert all PageMovable users to movable_operations
2022-06-09 15:27 ` [PATCH v2 02/19] mm: Convert all PageMovable users to movable_operations kernel test robot
@ 2022-06-09 18:46 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2022-06-09 18:46 UTC (permalink / raw)
To: kernel test robot; +Cc: llvm, kbuild-all
On Thu, Jun 09, 2022 at 11:27:13PM +0800, kernel test robot wrote:
> >> mm/z3fold.c:1505:24: warning: variable 'new_mapping' set but not used [-Wunused-but-set-variable]
> struct address_space *new_mapping;
> ^
> 1 warning generated.
Thanks, fixed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-09 18:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20220608150249.3033815-3-willy@infradead.org>
2022-06-09 15:27 ` [PATCH v2 02/19] mm: Convert all PageMovable users to movable_operations kernel test robot
2022-06-09 18:46 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox