Re: [linux-next:master 7600/8035] arch/alpha/include/asm/page.h:21:64: error: 'vmaddr' undeclared

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

 



On Mon, May 02, 2022 at 11:40:39PM +0800, kernel test robot wrote:
> commit: c4199a5358c9d22d9b88e2e6e4e94a8943415595 [7600/8035] mm: remove alloc_pages_vma()
> config: alpha-defconfig (https://download.01.org/0day-ci/archive/20220502/202205022324.ypi9GtUO-lkp@xxxxxxxxx/config)

>    mm/memory.c: In function 'wp_page_copy':
> >> arch/alpha/include/asm/page.h:21:64: error: 'vmaddr' undeclared (first use in this function)
>       21 |         alloc_page_vma(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, vma, vmaddr)

Oh, that's hilarious.  This should be the fix:

diff --git a/arch/alpha/include/asm/page.h b/arch/alpha/include/asm/page.h
index 18f48a6f2ff6..8f3f5eecba28 100644
--- a/arch/alpha/include/asm/page.h
+++ b/arch/alpha/include/asm/page.h
@@ -18,7 +18,7 @@ extern void clear_page(void *page);
 #define clear_user_page(page, vaddr, pg)       clear_page(page)

 #define alloc_zeroed_user_highpage_movable(vma, vaddr) \
-       alloc_page_vma(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, vma, vmaddr)
+       alloc_page_vma(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, vma, vaddr)
 #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE_MOVABLE

 extern void copy_page(void * _to, void * _from);

(whitespace damaged)




[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