Thread (83 messages) flat view 83 messages, 6 authors, 2018-03-27

Re: [PATCH 15/21] powerpc: Add missing prototype for MMU_setup

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2018-03-04 10:54:20
Also in: lkml

Mathieu Malaterre [off-list ref] writes:
Add a function declaration for MMU_setup at the beginning of the file to
fix a warning (treated as error in W=3D1):

  CC      kernel/sys.o
arch/powerpc/mm/init_32.c:102:13: error: no previous prototype for =E2=80=
=98MMU_setup=E2=80=99 [-Werror=3Dmissing-prototypes]
 void __init MMU_setup(void)
             ^~~~~~~~~
cc1: all warnings being treated as errors
Can't it be static instead?

  $ git grep -n MMU_setup
  arch/powerpc/mm/init_32.c:102:void __init MMU_setup(void)
  arch/powerpc/mm/init_32.c:135:  MMU_setup();

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help