linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6797/7915] mm/mmap.c:754:6: warning: no previous prototype for 'vma_store'
@ 2022-02-24  8:51 kernel test robot
  2022-02-24 18:23 ` Liam Howlett
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-02-24  8:51 UTC (permalink / raw)
  To: Liam R. Howlett
  Cc: kbuild-all, Linux Memory Management List, Matthew Wilcox (Oracle)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   d4a0ae62a277377de396850ed4b709b6bd9b7326
commit: e1345552730700c6b405d20acdfb92da77d0cdbf [6797/7915] kernel/fork: Use maple tree for dup_mmap() during forking
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220224/202202241600.1WmL7XfG-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e1345552730700c6b405d20acdfb92da77d0cdbf
        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 e1345552730700c6b405d20acdfb92da77d0cdbf
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> mm/mmap.c:754:6: warning: no previous prototype for 'vma_store' [-Wmissing-prototypes]
     754 | void vma_store(struct mm_struct *mm, struct vm_area_struct *vma)
         |      ^~~~~~~~~


vim +/vma_store +754 mm/mmap.c

37f4270132af31 Liam R. Howlett 2020-07-24  748  
37f4270132af31 Liam R. Howlett 2020-07-24  749  /*
37f4270132af31 Liam R. Howlett 2020-07-24  750   * vma_store() - Store a given vm_area_struct in the maple tree.
37f4270132af31 Liam R. Howlett 2020-07-24  751   * @mm: The struct_mm
37f4270132af31 Liam R. Howlett 2020-07-24  752   * @vma: The vm_area_struct to store in the maple tree.
37f4270132af31 Liam R. Howlett 2020-07-24  753   */
37f4270132af31 Liam R. Howlett 2020-07-24 @754  void vma_store(struct mm_struct *mm, struct vm_area_struct *vma)
37f4270132af31 Liam R. Howlett 2020-07-24  755  {
37f4270132af31 Liam R. Howlett 2020-07-24  756  	MA_STATE(mas, &mm->mm_mt, 0, 0);
37f4270132af31 Liam R. Howlett 2020-07-24  757  
37f4270132af31 Liam R. Howlett 2020-07-24  758  	trace_vma_store(vma->vm_mm, vma);
37f4270132af31 Liam R. Howlett 2020-07-24  759  	vma_mas_store(vma, &mas);
37f4270132af31 Liam R. Howlett 2020-07-24  760  }
37f4270132af31 Liam R. Howlett 2020-07-24  761  

:::::: The code at line 754 was first introduced by commit
:::::: 37f4270132af31dd08a209799d420f72bfddb49c mm: Start tracking VMAs with maple tree

:::::: TO: Liam R. Howlett <Liam.Howlett@Oracle.com>
:::::: CC: Liam R. Howlett <Liam.Howlett@oracle.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


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

* Re: [linux-next:master 6797/7915] mm/mmap.c:754:6: warning: no previous prototype for 'vma_store'
  2022-02-24  8:51 [linux-next:master 6797/7915] mm/mmap.c:754:6: warning: no previous prototype for 'vma_store' kernel test robot
@ 2022-02-24 18:23 ` Liam Howlett
  0 siblings, 0 replies; 2+ messages in thread
From: Liam Howlett @ 2022-02-24 18:23 UTC (permalink / raw)
  To: kernel test robot
  Cc: kbuild-all, Linux Memory Management List, Matthew Wilcox (Oracle)

* kernel test robot <lkp@intel.com> [220224 03:52]:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   d4a0ae62a277377de396850ed4b709b6bd9b7326
> commit: e1345552730700c6b405d20acdfb92da77d0cdbf [6797/7915] kernel/fork: Use maple tree for dup_mmap() during forking
> config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220224/202202241600.1WmL7XfG-lkp@intel.com/config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce (this is a W=1 build):
>         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e1345552730700c6b405d20acdfb92da77d0cdbf
>         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 e1345552730700c6b405d20acdfb92da77d0cdbf
>         # save the config file to linux build tree
>         mkdir build_dir
>         make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
> >> mm/mmap.c:754:6: warning: no previous prototype for 'vma_store' [-Wmissing-prototypes]
>      754 | void vma_store(struct mm_struct *mm, struct vm_area_struct *vma)
>          |      ^~~~~~~~~
> 

This was used by fork but was later dropped in the patch set.  I will
fix this for linux-next.

> 
> vim +/vma_store +754 mm/mmap.c
> 
> 37f4270132af31 Liam R. Howlett 2020-07-24  748  
> 37f4270132af31 Liam R. Howlett 2020-07-24  749  /*
> 37f4270132af31 Liam R. Howlett 2020-07-24  750   * vma_store() - Store a given vm_area_struct in the maple tree.
> 37f4270132af31 Liam R. Howlett 2020-07-24  751   * @mm: The struct_mm
> 37f4270132af31 Liam R. Howlett 2020-07-24  752   * @vma: The vm_area_struct to store in the maple tree.
> 37f4270132af31 Liam R. Howlett 2020-07-24  753   */
> 37f4270132af31 Liam R. Howlett 2020-07-24 @754  void vma_store(struct mm_struct *mm, struct vm_area_struct *vma)
> 37f4270132af31 Liam R. Howlett 2020-07-24  755  {
> 37f4270132af31 Liam R. Howlett 2020-07-24  756  	MA_STATE(mas, &mm->mm_mt, 0, 0);
> 37f4270132af31 Liam R. Howlett 2020-07-24  757  
> 37f4270132af31 Liam R. Howlett 2020-07-24  758  	trace_vma_store(vma->vm_mm, vma);
> 37f4270132af31 Liam R. Howlett 2020-07-24  759  	vma_mas_store(vma, &mas);
> 37f4270132af31 Liam R. Howlett 2020-07-24  760  }
> 37f4270132af31 Liam R. Howlett 2020-07-24  761  
> 
> :::::: The code at line 754 was first introduced by commit
> :::::: 37f4270132af31dd08a209799d420f72bfddb49c mm: Start tracking VMAs with maple tree
> 
> :::::: TO: Liam R. Howlett <Liam.Howlett@Oracle.com>
> :::::: CC: Liam R. Howlett <Liam.Howlett@oracle.com>
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24  8:51 [linux-next:master 6797/7915] mm/mmap.c:754:6: warning: no previous prototype for 'vma_store' kernel test robot
2022-02-24 18:23 ` Liam Howlett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).