* [PATCH -next] mm: fix build for arm64 hugetlbpage
@ 2016-02-25 15:33 Sudeep Holla
2016-02-26 10:34 ` Kirill A. Shutemov
0 siblings, 1 reply; 2+ messages in thread
From: Sudeep Holla @ 2016-02-25 15:33 UTC (permalink / raw)
To: Kirill A. Shutemov, Andrew Morton
Cc: Sudeep Holla, Catalin Marinas, Will Deacon, Steve Capper,
linux-arm-kernel, linux-kernel
Commit ("mm: cleanup *pte_alloc* interfaces") redefined pte_alloc_map()
using pte_alloc() and fixed all the callsites. However arm64 callsite
seem to have got missed. This patch fixes the same and thereby fixing
the following build error.
arch/arm64/mm/hugetlbpage.c: In function 'huge_pte_alloc':
arch/arm64/mm/hugetlbpage.c:127:42: error: macro "pte_alloc_map" passed 4 arguments, but takes just 3
pte = pte_alloc_map(mm, NULL, pmd, addr);
^
arch/arm64/mm/hugetlbpage.c:127:9: error: 'pte_alloc_map' undeclared (first use in this function)
pte = pte_alloc_map(mm, NULL, pmd, addr);
^
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
arch/arm64/mm/hugetlbpage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hi,
Since it's from -mm tree, I have not put the commit id causing the
breakage. Also since I don't have the original patch in my inbox, I am
posting this separately. It would be good to squash this into original
commit.
Regards,
Sudeep
diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c
index 82d607c3614e..bb6b4c7bfab3 100644
--- a/arch/arm64/mm/hugetlbpage.c
+++ b/arch/arm64/mm/hugetlbpage.c
@@ -124,7 +124,7 @@ pte_t *huge_pte_alloc(struct mm_struct *mm,
* will be no pte_unmap() to correspond with this
* pte_alloc_map().
*/
- pte = pte_alloc_map(mm, NULL, pmd, addr);
+ pte = pte_alloc_map(mm, pmd, addr);
} else if (sz == PMD_SIZE) {
if (IS_ENABLED(CONFIG_ARCH_WANT_HUGE_PMD_SHARE) &&
pud_none(*pud))
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH -next] mm: fix build for arm64 hugetlbpage
2016-02-25 15:33 [PATCH -next] mm: fix build for arm64 hugetlbpage Sudeep Holla
@ 2016-02-26 10:34 ` Kirill A. Shutemov
0 siblings, 0 replies; 2+ messages in thread
From: Kirill A. Shutemov @ 2016-02-26 10:34 UTC (permalink / raw)
To: Sudeep Holla
Cc: Kirill A. Shutemov, Andrew Morton, Catalin Marinas, Will Deacon,
Steve Capper, linux-arm-kernel, linux-kernel
On Thu, Feb 25, 2016 at 03:33:05PM +0000, Sudeep Holla wrote:
> Commit ("mm: cleanup *pte_alloc* interfaces") redefined pte_alloc_map()
> using pte_alloc() and fixed all the callsites. However arm64 callsite
> seem to have got missed. This patch fixes the same and thereby fixing
> the following build error.
>
> arch/arm64/mm/hugetlbpage.c: In function 'huge_pte_alloc':
> arch/arm64/mm/hugetlbpage.c:127:42: error: macro "pte_alloc_map" passed 4 arguments, but takes just 3
> pte = pte_alloc_map(mm, NULL, pmd, addr);
> ^
> arch/arm64/mm/hugetlbpage.c:127:9: error: 'pte_alloc_map' undeclared (first use in this function)
> pte = pte_alloc_map(mm, NULL, pmd, addr);
> ^
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Sorry for that.
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> ---
> arch/arm64/mm/hugetlbpage.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Hi,
>
> Since it's from -mm tree, I have not put the commit id causing the
> breakage. Also since I don't have the original patch in my inbox, I am
> posting this separately. It would be good to squash this into original
> commit.
>
> Regards,
> Sudeep
>
> diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c
> index 82d607c3614e..bb6b4c7bfab3 100644
> --- a/arch/arm64/mm/hugetlbpage.c
> +++ b/arch/arm64/mm/hugetlbpage.c
> @@ -124,7 +124,7 @@ pte_t *huge_pte_alloc(struct mm_struct *mm,
> * will be no pte_unmap() to correspond with this
> * pte_alloc_map().
> */
> - pte = pte_alloc_map(mm, NULL, pmd, addr);
> + pte = pte_alloc_map(mm, pmd, addr);
> } else if (sz == PMD_SIZE) {
> if (IS_ENABLED(CONFIG_ARCH_WANT_HUGE_PMD_SHARE) &&
> pud_none(*pud))
> --
> 1.9.1
>
--
Kirill A. Shutemov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-26 10:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-25 15:33 [PATCH -next] mm: fix build for arm64 hugetlbpage Sudeep Holla
2016-02-26 10:34 ` Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®