提交 f91d5998 编写于 作者: M Mathieu Malaterre 提交者: Michael Ellerman

powerpc/powermac: Move pmac_pfunc_base_install prototype to header file

The pmac_pfunc_base_install prototype was declared in powermac/smp.c since
function was used there, move it to pmac_pfunc.h header to be visible in
pfunc_base.c. Fix a warning treated as error with W=1:

  arch/powerpc/platforms/powermac/pfunc_base.c:330:12: error: no previous prototype for ‘pmac_pfunc_base_install’ [-Werror=missing-prototypes]
Suggested-by: NChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: NMathieu Malaterre <malat@debian.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 910be6be
...@@ -245,6 +245,7 @@ extern void pmf_put_function(struct pmf_function *func); ...@@ -245,6 +245,7 @@ extern void pmf_put_function(struct pmf_function *func);
extern int pmf_call_one(struct pmf_function *func, struct pmf_args *args); extern int pmf_call_one(struct pmf_function *func, struct pmf_args *args);
int pmac_pfunc_base_install(void);
/* Suspend/resume code called by via-pmu directly for now */ /* Suspend/resume code called by via-pmu directly for now */
extern void pmac_pfunc_base_suspend(void); extern void pmac_pfunc_base_suspend(void);
......
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
#endif #endif
extern void __secondary_start_pmac_0(void); extern void __secondary_start_pmac_0(void);
extern int pmac_pfunc_base_install(void);
static void (*pmac_tb_freeze)(int freeze); static void (*pmac_tb_freeze)(int freeze);
static u64 timebase; static u64 timebase;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册