Hi Kirill, [auto build test ERROR on linus/master] [also build test ERROR on v4.9-rc6 next-20161123] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Kirill-A-Shutemov/mm-fix-false-positive-WARN_ON-in-truncate-invalidate-for-hugetlb/20161123-185641 config: alpha-defconfig (attached as .config) compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=alpha All errors (new ones prefixed by >>): In file included from arch/alpha/mm/init.c:9:0: include/linux/pagemap.h: In function 'page_to_pgoff': >> include/linux/pagemap.h:402:10: error: unused variable 'pgoff' [-Werror=unused-variable] pgoff_t pgoff; ^~~~~ cc1: all warnings being treated as errors vim +/pgoff +402 include/linux/pagemap.h 396 /* 397 * Get the offset in PAGE_SIZE. 398 * (TODO: hugepage should have ->index in PAGE_SIZE) 399 */ 400 static inline pgoff_t page_to_pgoff(struct page *page) 401 { > 402 pgoff_t pgoff; 403 404 if (unlikely(PageHeadHuge(page))) 405 return page->index << compound_order(page); --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip