Re: [PATCH] mm: exitz syscall

From: kernel test robot
Date: Fri Nov 10 2023 - 16:41:28 EST


Hi York,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8728c14129df7a6e29188a2e737b4774fb200953]

url: https://github.com/intel-lab-lkp/linux/commits/York-Jasper-Niebuhr/mm-exitz-syscall/20231111-031729
base: 8728c14129df7a6e29188a2e737b4774fb200953
patch link: https://lore.kernel.org/r/20231110184720.39780-1-yjnworkstation%40gmail.com
patch subject: [PATCH] mm: exitz syscall
config: loongarch-randconfig-001-20231111 (https://download.01.org/0day-ci/archive/20231111/202311110549.g5gj4ZVU-lkp@xxxxxxxxx/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231111/202311110549.g5gj4ZVU-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311110549.g5gj4ZVU-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> kernel/exitz.c:73:6: warning: no previous prototype for 'exit_memz' [-Wmissing-prototypes]
73 | void exit_memz(void)
| ^~~~~~~~~


vim +/exit_memz +73 kernel/exitz.c

69
70 /*
71 * Overwrite any memory associated to current process with zeros.
72 */
> 73 void exit_memz(void)
74 {
75 if (!(current->ezflags & EZ_MEM))
76 return;
77
78 struct vm_area_struct *vma;
79
80 VMA_ITERATOR(vmi, current->mm, 0);
81
82 for_each_vma(vmi, vma) {
83 memz_range(vma->vm_start, vma->vm_end);
84 }
85 }
86

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki