[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <95da57a0-dcf9-c829-1c4b-6492d7681750@codeaurora.org>
Date: Tue, 3 Apr 2018 13:31:52 +0530
From: Chintan Pandya <cpandya@...eaurora.org>
To: kbuild test robot <lkp@...el.com>
Cc: kbuild-all@...org, catalin.marinas@....com, will.deacon@....com,
mark.rutland@....com, toshi.kani@....com, arnd@...db.de,
ard.biesheuvel@...aro.org, marc.zyngier@....com,
james.morse@....com, kristina.martsenko@....com,
takahiro.akashi@...aro.org, gregkh@...uxfoundation.org,
tglx@...utronix.de, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
akpm@...ux-foundation.org
Subject: Re: [PATCH v7 1/4] ioremap: Update pgtable free interfaces with addr
On 3/29/2018 5:23 PM, kbuild test robot wrote:
> Hi Chintan,
>
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on v4.16-rc7]
> [also build test ERROR on next-20180328]
> [cannot apply to arm64/for-next/core tip/x86/core asm-generic/master]
> [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/Chintan-Pandya/ioremap-Update-pgtable-free-interfaces-with-addr/20180329-133736
> config: x86_64-rhel (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
> arch/x86/mm/pgtable.c: In function 'pud_free_pmd_page':
>>> arch/x86/mm/pgtable.c:725:8: error: too few arguments to function 'pmd_free_pte_page'
> if (!pmd_free_pte_page(&pmd[i]), addr + (i * PMD_SIZE))
> ^~~~~~~~~~~~~~~~~
> In file included from arch/x86/include/asm/pgtable.h:1292:0,
> from include/linux/memremap.h:8,
> from include/linux/mm.h:27,
> from arch/x86/mm/pgtable.c:2:
> include/asm-generic/pgtable.h:987:5: note: declared here
> int pmd_free_pte_page(pmd_t *pmd, unsigned long addr);
> ^~~~~~~~~~~~~~~~~
> arch/x86/mm/pgtable.c:725:34: warning: left-hand operand of comma expression has no effect [-Wunused-value]
> if (!pmd_free_pte_page(&pmd[i]), addr + (i * PMD_SIZE))
> ^
>
> vim +/pmd_free_pte_page +725 arch/x86/mm/pgtable.c
>
> 705
> 706 /**
> 707 * pud_free_pmd_page - Clear pud entry and free pmd page.
> 708 * @pud: Pointer to a PUD.
> 709 * @addr: Virtual address associated with pud.
> 710 *
> 711 * Context: The pud range has been unmaped and TLB purged.
> 712 * Return: 1 if clearing the entry succeeded. 0 otherwise.
> 713 */
> 714 int pud_free_pmd_page(pud_t *pud, unsigned long addr)
> 715 {
> 716 pmd_t *pmd;
> 717 int i;
> 718
> 719 if (pud_none(*pud))
> 720 return 1;
> 721
> 722 pmd = (pmd_t *)pud_page_vaddr(*pud);
> 723
> 724 for (i = 0; i < PTRS_PER_PMD; i++)
> > 725 if (!pmd_free_pte_page(&pmd[i]), addr + (i * PMD_SIZE))
Missed it. Will upload v8
> 726 return 0;
> 727
> 728 pud_clear(pud);
> 729 free_page((unsigned long)pmd);
> 730
> 731 return 1;
> 732 }
> 733
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
>
Chintan
--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center,
Inc. is a member of the Code Aurora Forum, a Linux Foundation
Collaborative Project
Powered by blists - more mailing lists