[powerpc:next-test 15/17] arch/powerpc/mm/book3s64/hash_utils.c:1986:6: warning: no previous prototype for 'kfence_protect_page'
Christophe Leroy
christophe.leroy at csgroup.eu
Mon Mar 8 18:03:04 AEDT 2021
Le 07/03/2021 à 14:18, kernel test robot a écrit :
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test
> head: 7c6d5b4b9e8a472043a26ccc22092aebbe65ca68
> commit: 0f19bac474e0f9ce9b38a7ce00c57abb321338d1 [15/17] powerpc: Enable KFENCE on BOOK3S/64
> config: powerpc-allyesconfig (attached as .config)
> compiler: powerpc64-linux-gcc (GCC) 9.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/powerpc/linux.git/commit/?id=0f19bac474e0f9ce9b38a7ce00c57abb321338d1
> git remote add powerpc https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
> git fetch --no-tags powerpc next-test
> git checkout 0f19bac474e0f9ce9b38a7ce00c57abb321338d1
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp at intel.com>
>
> All warnings (new ones prefixed by >>):
>
>>> arch/powerpc/mm/book3s64/hash_utils.c:1986:6: warning: no previous prototype for 'kfence_protect_page' [-Wmissing-prototypes]
> 1986 | bool kfence_protect_page(unsigned long addr, bool protect)
We have to include <linux/kfence.h>
Christophe
> | ^~~~~~~~~~~~~~~~~~~
>
>
> vim +/kfence_protect_page +1986 arch/powerpc/mm/book3s64/hash_utils.c
>
> 1984
> 1985 #ifdef CONFIG_KFENCE
>> 1986 bool kfence_protect_page(unsigned long addr, bool protect)
> 1987 {
> 1988 unsigned long lmi = __pa(addr) >> PAGE_SHIFT;
> 1989
> 1990 if (protect)
> 1991 kernel_unmap_linear_page(addr, lmi);
> 1992 else
> 1993 kernel_map_linear_page(addr, lmi);
> 1994
> 1995 return true;
> 1996 }
> 1997 #endif
> 1998
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
More information about the Linuxppc-dev
mailing list