aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/setup.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-09-04 06:43:35 -0400
committerVineet Gupta <vgupta@synopsys.com>2013-11-06 00:10:37 -0500
commit8e457d6a75421372c7721388c46d21381fd5b451 (patch)
treebf7e53f3e38e44db5677d6a6b5897de3ee1a1a08 /arch/arc/kernel/setup.c
parent6855e95ce3256cdb5f4fbc988fe8ee925b051ef7 (diff)
ARC: Annotate some functions as static
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel/setup.c')
-rw-r--r--arch/arc/kernel/setup.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c
index 2c68bc7e6a78..d9e15f16633e 100644
--- a/arch/arc/kernel/setup.c
+++ b/arch/arc/kernel/setup.c
@@ -37,8 +37,7 @@ struct task_struct *_current_task[NR_CPUS]; /* For stack switching */
37 37
38struct cpuinfo_arc cpuinfo_arc700[NR_CPUS]; 38struct cpuinfo_arc cpuinfo_arc700[NR_CPUS];
39 39
40 40static void read_arc_build_cfg_regs(void)
41void read_arc_build_cfg_regs(void)
42{ 41{
43 struct bcr_perip uncached_space; 42 struct bcr_perip uncached_space;
44 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; 43 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()];
@@ -106,7 +105,7 @@ static const struct cpuinfo_data arc_cpu_tbl[] = {
106 { {0x00, NULL } } 105 { {0x00, NULL } }
107}; 106};
108 107
109char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len) 108static char *arc_cpu_mumbojumbo(int cpu_id, char *buf, int len)
110{ 109{
111 int n = 0; 110 int n = 0;
112 struct cpuinfo_arc *cpu = &cpuinfo_arc700[cpu_id]; 111 struct cpuinfo_arc *cpu = &cpuinfo_arc700[cpu_id];
@@ -171,7 +170,7 @@ static const struct id_to_str mac_mul_nm[] = {
171 {0x6, "Dual 16x16 and 32x16"} 170 {0x6, "Dual 16x16 and 32x16"}
172}; 171};
173 172
174char *arc_extn_mumbojumbo(int cpu_id, char *buf, int len) 173static char *arc_extn_mumbojumbo(int cpu_id, char *buf, int len)
175{ 174{
176 int n = 0; 175 int n = 0;
177 struct cpuinfo_arc *cpu = &cpuinfo_arc700[cpu_id]; 176 struct cpuinfo_arc *cpu = &cpuinfo_arc700[cpu_id];
@@ -234,7 +233,7 @@ char *arc_extn_mumbojumbo(int cpu_id, char *buf, int len)
234 return buf; 233 return buf;
235} 234}
236 235
237void arc_chk_ccms(void) 236static void arc_chk_ccms(void)
238{ 237{
239#if defined(CONFIG_ARC_HAS_DCCM) || defined(CONFIG_ARC_HAS_ICCM) 238#if defined(CONFIG_ARC_HAS_DCCM) || defined(CONFIG_ARC_HAS_ICCM)
240 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; 239 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()];
@@ -269,7 +268,7 @@ void arc_chk_ccms(void)
269 * hardware has dedicated regs which need to be saved/restored on ctx-sw 268 * hardware has dedicated regs which need to be saved/restored on ctx-sw
270 * (Single Precision uses core regs), thus kernel is kind of oblivious to it 269 * (Single Precision uses core regs), thus kernel is kind of oblivious to it
271 */ 270 */
272void arc_chk_fpu(void) 271static void arc_chk_fpu(void)
273{ 272{
274 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()]; 273 struct cpuinfo_arc *cpu = &cpuinfo_arc700[smp_processor_id()];
275 274