Re: [PATCH] nfs: cover ->migratepage with CONFIG_MIGRATION

From: kbuild test robot
Date: Tue Sep 20 2016 - 00:45:43 EST

Hi Chao,

[auto build test ERROR on nfs/linux-next]
[also build test ERROR on v4.8-rc7 next-20160919]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check for more information]

base: git:// linux-next
config: i386-randconfig-s1-09191616 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

>> fs/nfs/file.c:547:17: error: 'nfs_migrate_page' undeclared here (not in a function)
.migratepage = nfs_migrate_page,

vim +/nfs_migrate_page +547 fs/nfs/file.c

4899f9c8 Nick Piggin 2007-10-16 541 .write_begin = nfs_write_begin,
4899f9c8 Nick Piggin 2007-10-16 542 .write_end = nfs_write_end,
cd52ed35 Trond Myklebust 2006-03-20 543 .invalidatepage = nfs_invalidate_page,
cd52ed35 Trond Myklebust 2006-03-20 544 .releasepage = nfs_release_page,
^1da177e Linus Torvalds 2005-04-16 545 .direct_IO = nfs_direct_IO,
daa42d9f Chao Yu 2016-09-20 546 #ifdef CONFIG_MIGRATION
074cc1de Trond Myklebust 2009-08-10 @547 .migratepage = nfs_migrate_page,
daa42d9f Chao Yu 2016-09-20 548 #endif
e3db7691 Trond Myklebust 2007-01-10 549 .launder_page = nfs_launder_page,
f919b196 Mel Gorman 2013-07-03 550 .is_dirty_writeback = nfs_check_dirty_writeback,

:::::: The code at line 547 was first introduced by commit
:::::: 074cc1deec5dee63fcd5d966b36fa4f3765b50fc NFS: Add a ->migratepage() aop for NFS

:::::: TO: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>
:::::: CC: Trond Myklebust <Trond.Myklebust@xxxxxxxxxx>

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip