Hi Kirill, [auto build test WARNING on linus/master] [also build test WARNING 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: x86_64-randconfig-a0-11231631 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): In file included from fs/hfsplus/super.c:12: include/linux/pagemap.h: In function 'page_to_pgoff': >> include/linux/pagemap.h:402: warning: unused variable 'pgoff' vim +/pgoff +402 include/linux/pagemap.h 386 387 /* 388 * We don't initialize ->index for tail pages: calculate based on 389 * head page 390 */ 391 pgoff = compound_head(page)->index; 392 pgoff += page - compound_head(page); 393 return pgoff; 394 } 395 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); 406 407 return page_to_index(page); 408 } 409 410 /* --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip