提交 7098f8f0 编写于 作者: M Michael Ellerman

powerpc/mm/radix: Make radix__change_memory_range() static

The lkp bot pointed out that with W=1 we get:

  arch/powerpc/mm/book3s64/radix_pgtable.c:183:6: error: no previous
  prototype for 'radix__change_memory_range'

Which is really saying that it could be static, make it so.
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 74205b3f
...@@ -180,8 +180,8 @@ int radix__map_kernel_page(unsigned long ea, unsigned long pa, ...@@ -180,8 +180,8 @@ int radix__map_kernel_page(unsigned long ea, unsigned long pa,
} }
#ifdef CONFIG_STRICT_KERNEL_RWX #ifdef CONFIG_STRICT_KERNEL_RWX
void radix__change_memory_range(unsigned long start, unsigned long end, static void radix__change_memory_range(unsigned long start, unsigned long end,
unsigned long clear) unsigned long clear)
{ {
unsigned long idx; unsigned long idx;
pgd_t *pgdp; pgd_t *pgdp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册