lkml.org 
[lkml]   [2018]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 15/21] powerpc: Add missing prototype for MMU_setup
Date
Mathieu Malaterre <malat@debian.org> writes:
> Add a function declaration for MMU_setup at the beginning of the file to
> fix a warning (treated as error in W=1):
>
> CC kernel/sys.o
> arch/powerpc/mm/init_32.c:102:13: error: no previous prototype for ‘MMU_setup’ [-Werror=missing-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

\
 
 \ /
  Last update: 2018-03-04 11:55    [W:0.504 / U:1.236 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site