Re: [mmotm:master 105/365] arch/powerpc/mm/hugetlbpage.c:718:1: error: conflicting types for 'follow_huge_pud'

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

 



On Sat, Jan 17, 2015 at 10:59:14AM +0800, kbuild test robot wrote:
tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   59f7a5af1a6c9e19c6e5152f26548c494a2d7338
commit: 3ecd42e200dc8afcdcea809b1546783e3dc271be [105/365] mm/hugetlb: reduce arch dependent code around follow_huge_*
config: powerpc-pasemi_defconfig (attached as .config)
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
  git checkout 3ecd42e200dc8afcdcea809b1546783e3dc271be
  # save the attached .config to linux build tree
  make.cross ARCH=powerpc

All error/warnings:

>> arch/powerpc/mm/hugetlbpage.c:718:1: error: conflicting types for 'follow_huge_pud'
    follow_huge_pud(struct mm_struct *mm, unsigned long address,
    ^
   In file included from arch/powerpc/mm/hugetlbpage.c:14:0:
   include/linux/hugetlb.h:103:14: note: previous declaration of 'follow_huge_pud' was here
    struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address,
                 ^

vim +/follow_huge_pud +718 arch/powerpc/mm/hugetlbpage.c

   712	{
   713		BUG();
   714		return NULL;
   715	}
   716	
   717	struct page *
 > 718	follow_huge_pud(struct mm_struct *mm, unsigned long address,
   719			pmd_t *pmd, int write)

Invalid argument type. Andrew, could you please fold the following diff?

diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c
index b4c93e6b16e5..7e408bfc7948 100644
--- a/arch/powerpc/mm/hugetlbpage.c
+++ b/arch/powerpc/mm/hugetlbpage.c
@@ -716,7 +716,7 @@ follow_huge_pmd(struct mm_struct *mm, unsigned long address,
struct page *
 follow_huge_pud(struct mm_struct *mm, unsigned long address,
-		pmd_t *pmd, int write)
+		pud_t *pud, int write)
 {
 	BUG();
 	return NULL;

Thanks,
Naoya Horiguchi

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



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