microblaze: Fix sparse warnings - cache.c

Warning log:
CHECK   arch/microblaze/kernel/cpu/cache.c
arch/microblaze/kernel/cpu/cache.c:522:21: warning: symbol 'wb_msr' was not declared. Should it be static?
arch/microblaze/kernel/cpu/cache.c:538:21: warning: symbol 'wb_nomsr' was not declared. Should it be static?
arch/microblaze/kernel/cpu/cache.c:554:21: warning: symbol 'wt_msr' was not declared. Should it be static?
arch/microblaze/kernel/cpu/cache.c:569:21: warning: symbol 'wt_nomsr' was not declared. Should it be static?
arch/microblaze/kernel/cpu/cache.c:585:21: warning: symbol 'wt_msr_noirq' was not declared. Should it be static?
arch/microblaze/kernel/cpu/cache.c:600:21: warning: symbol 'wt_nomsr_noirq' was not declared. Should it be static?

Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
Michal Simek
2011-02-07 12:21:42 +01:00
parent 8afe3839a9
commit 954e8b9599

View File

@@ -519,7 +519,7 @@ static void __flush_dcache_range_wb(unsigned long start, unsigned long end)
struct scache *mbc; struct scache *mbc;
/* new wb cache model */ /* new wb cache model */
const struct scache wb_msr = { static const struct scache wb_msr = {
.ie = __enable_icache_msr, .ie = __enable_icache_msr,
.id = __disable_icache_msr, .id = __disable_icache_msr,
.ifl = __flush_icache_all_noirq, .ifl = __flush_icache_all_noirq,
@@ -535,7 +535,7 @@ const struct scache wb_msr = {
}; };
/* There is only difference in ie, id, de, dd functions */ /* There is only difference in ie, id, de, dd functions */
const struct scache wb_nomsr = { static const struct scache wb_nomsr = {
.ie = __enable_icache_nomsr, .ie = __enable_icache_nomsr,
.id = __disable_icache_nomsr, .id = __disable_icache_nomsr,
.ifl = __flush_icache_all_noirq, .ifl = __flush_icache_all_noirq,
@@ -551,7 +551,7 @@ const struct scache wb_nomsr = {
}; };
/* Old wt cache model with disabling irq and turn off cache */ /* Old wt cache model with disabling irq and turn off cache */
const struct scache wt_msr = { static const struct scache wt_msr = {
.ie = __enable_icache_msr, .ie = __enable_icache_msr,
.id = __disable_icache_msr, .id = __disable_icache_msr,
.ifl = __flush_icache_all_msr_irq, .ifl = __flush_icache_all_msr_irq,
@@ -566,7 +566,7 @@ const struct scache wt_msr = {
.dinr = __invalidate_dcache_range_msr_irq_wt, .dinr = __invalidate_dcache_range_msr_irq_wt,
}; };
const struct scache wt_nomsr = { static const struct scache wt_nomsr = {
.ie = __enable_icache_nomsr, .ie = __enable_icache_nomsr,
.id = __disable_icache_nomsr, .id = __disable_icache_nomsr,
.ifl = __flush_icache_all_nomsr_irq, .ifl = __flush_icache_all_nomsr_irq,
@@ -582,7 +582,7 @@ const struct scache wt_nomsr = {
}; };
/* New wt cache model for newer Microblaze versions */ /* New wt cache model for newer Microblaze versions */
const struct scache wt_msr_noirq = { static const struct scache wt_msr_noirq = {
.ie = __enable_icache_msr, .ie = __enable_icache_msr,
.id = __disable_icache_msr, .id = __disable_icache_msr,
.ifl = __flush_icache_all_noirq, .ifl = __flush_icache_all_noirq,
@@ -597,7 +597,7 @@ const struct scache wt_msr_noirq = {
.dinr = __invalidate_dcache_range_nomsr_wt, .dinr = __invalidate_dcache_range_nomsr_wt,
}; };
const struct scache wt_nomsr_noirq = { static const struct scache wt_nomsr_noirq = {
.ie = __enable_icache_nomsr, .ie = __enable_icache_nomsr,
.id = __disable_icache_nomsr, .id = __disable_icache_nomsr,
.ifl = __flush_icache_all_noirq, .ifl = __flush_icache_all_noirq,