powerpc/cpm1: Mark micropatch code/data static and __init
This saves runtime memory and fixes lots of sparse warnings like this: CHECK arch/powerpc/sysdev/micropatch.c arch/powerpc/sysdev/micropatch.c:27:6: warning: symbol 'patch_2000' was not declared. Should it be static? arch/powerpc/sysdev/micropatch.c:146:6: warning: symbol 'patch_2f00' was not declared. Should it be static? ... Signed-off-by: Anton Vorontsov <avorontsov@mvista.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:

committed by
Kumar Gala

parent
2069a6ae19
commit
af71bcfeaa
@@ -17,6 +17,7 @@
|
||||
#ifndef __CPM1__
|
||||
#define __CPM1__
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <asm/8xx_immap.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/cpm.h>
|
||||
@@ -54,7 +55,7 @@ extern cpm8xx_t __iomem *cpmp; /* Pointer to comm processor */
|
||||
|
||||
extern void cpm_setbrg(uint brg, uint rate);
|
||||
|
||||
extern void cpm_load_patch(cpm8xx_t *cp);
|
||||
extern void __init cpm_load_patch(cpm8xx_t *cp);
|
||||
|
||||
extern void cpm_reset(void);
|
||||
|
||||
|
Reference in New Issue
Block a user