All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 7600/8035] arch/alpha/include/asm/page.h:21:64: error: 'vmaddr' undeclared
@ 2022-05-02 15:40 kernel test robot
  2022-05-02 23:22   ` Matthew Wilcox
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2022-05-02 15:40 UTC (permalink / raw)
  To: Matthew Wilcox (Oracle)
  Cc: kbuild-all, Linux Memory Management List, Andrew Morton

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9f9b9a2972eb8dcaad09d826c5c6d7488eaca3e6
commit: c4199a5358c9d22d9b88e2e6e4e94a8943415595 [7600/8035] mm: remove alloc_pages_vma()
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20220502/202205022324.ypi9GtUO-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=c4199a5358c9d22d9b88e2e6e4e94a8943415595
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout c4199a5358c9d22d9b88e2e6e4e94a8943415595
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/shm.h:6,
                    from include/linux/sched.h:16,
                    from include/linux/hardirq.h:9,
                    from include/linux/interrupt.h:11,
                    from include/linux/kernel_stat.h:9,
                    from mm/memory.c:42:
   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)
         |                                                                ^~~~~~
   mm/memory.c:3097:28: note: in expansion of macro 'alloc_zeroed_user_highpage_movable'
    3097 |                 new_page = alloc_zeroed_user_highpage_movable(vma,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/alpha/include/asm/page.h:21:64: note: each undeclared identifier is reported only once for each function it appears in
      21 |         alloc_page_vma(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, vma, vmaddr)
         |                                                                ^~~~~~
   mm/memory.c:3097:28: note: in expansion of macro 'alloc_zeroed_user_highpage_movable'
    3097 |                 new_page = alloc_zeroed_user_highpage_movable(vma,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   mm/memory.c: In function 'do_anonymous_page':
>> 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)
         |                                                                ^~~~~~
   mm/memory.c:4068:16: note: in expansion of macro 'alloc_zeroed_user_highpage_movable'
    4068 |         page = alloc_zeroed_user_highpage_movable(vma, vmf->address);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/vmaddr +21 arch/alpha/include/asm/page.h

^1da177e4c3f41 include/asm-alpha/page.h      Linus Torvalds      2005-04-16  19  
92638b4e1b47f9 arch/alpha/include/asm/page.h Peter Collingbourne 2021-06-02  20  #define alloc_zeroed_user_highpage_movable(vma, vaddr) \
92638b4e1b47f9 arch/alpha/include/asm/page.h Peter Collingbourne 2021-06-02 @21  	alloc_page_vma(GFP_HIGHUSER_MOVABLE | __GFP_ZERO, vma, vmaddr)
92638b4e1b47f9 arch/alpha/include/asm/page.h Peter Collingbourne 2021-06-02  22  #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE_MOVABLE
^1da177e4c3f41 include/asm-alpha/page.h      Linus Torvalds      2005-04-16  23  

:::::: The code at line 21 was first introduced by commit
:::::: 92638b4e1b47f97d7269e74465dedf73096f777d mm: arch: remove indirection level in alloc_zeroed_user_highpage_movable()

:::::: TO: Peter Collingbourne <pcc@google.com>
:::::: CC: Will Deacon <will@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-next:master 7600/8035] arch/alpha/include/asm/page.h:21:64: error: 'vmaddr' undeclared
  2022-05-02 15:40 [linux-next:master 7600/8035] arch/alpha/include/asm/page.h:21:64: error: 'vmaddr' undeclared kernel test robot
@ 2022-05-02 23:22   ` Matthew Wilcox
  0 siblings, 0 replies; 3+ messages in thread
From: Matthew Wilcox @ 2022-05-02 23:22 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, Linux Memory Management List, Andrew Morton

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@intel.com/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)


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [linux-next:master 7600/8035] arch/alpha/include/asm/page.h:21:64: error: 'vmaddr' undeclared
@ 2022-05-02 23:22   ` Matthew Wilcox
  0 siblings, 0 replies; 3+ messages in thread
From: Matthew Wilcox @ 2022-05-02 23:22 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

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(a)intel.com/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)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-02 23:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 15:40 [linux-next:master 7600/8035] arch/alpha/include/asm/page.h:21:64: error: 'vmaddr' undeclared kernel test robot
2022-05-02 23:22 ` Matthew Wilcox
2022-05-02 23:22   ` Matthew Wilcox

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.