Skip to content

Commit 7098f8f

Browse files
committed
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: kernel test robot <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 74205b3 commit 7098f8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/mm/book3s64/radix_pgtable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ int radix__map_kernel_page(unsigned long ea, unsigned long pa,
180180
}
181181

182182
#ifdef CONFIG_STRICT_KERNEL_RWX
183-
void radix__change_memory_range(unsigned long start, unsigned long end,
184-
unsigned long clear)
183+
static void radix__change_memory_range(unsigned long start, unsigned long end,
184+
unsigned long clear)
185185
{
186186
unsigned long idx;
187187
pgd_t *pgdp;

0 commit comments

Comments
 (0)