Re: [linux-next:master] BUILD REGRESSION 19ae1f2bd9c091059f80646604ccef8a1e614f57

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 16 Jun 2021 06:16:55 +0800 kernel test robot <lkp@xxxxxxxxx> wrote:

> tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> branch HEAD: 19ae1f2bd9c091059f80646604ccef8a1e614f57  Add linux-next specific files for 20210615
> 
> Error/Warning ids grouped by kconfigs:
> 
> clang_recent_errors
> |-- arm64-randconfig-r014-20210615
> |   `-- mm-hugetlb.c:warning:no-previous-prototype-for-function-hugetlb_basepage_index
> |-- x86_64-randconfig-a011-20210615
> |   `-- mm-hugetlb.c:warning:no-previous-prototype-for-function-hugetlb_basepage_index

I guess this?  Against Hugh's "mm, futex: fix shared futex pgoff on
shmem huge page".

--- a/include/linux/pagemap.h~mm-futex-fix-shared-futex-pgoff-on-shmem-huge-page-fix
+++ a/include/linux/pagemap.h
@@ -535,16 +535,16 @@ static inline pgoff_t page_to_index(stru
 	return pgoff;
 }
 
+extern pgoff_t hugetlb_basepage_index(struct page *page);
+
 /*
  * Get the offset in PAGE_SIZE (even for hugetlb pages).
  * (TODO: hugetlb pages should have ->index in PAGE_SIZE)
  */
 static inline pgoff_t page_to_pgoff(struct page *page)
 {
-	if (unlikely(PageHuge(page))) {
-		extern pgoff_t hugetlb_basepage_index(struct page *page);
+	if (unlikely(PageHuge(page)))
 		return hugetlb_basepage_index(page);
-	}
 	return page_to_index(page);
 }
 
_





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux