Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+6 -6
+6 -6
arch/microblaze/kernel/cpu/cache.c
··· 519 519 struct scache *mbc; 520 520 521 521 /* new wb cache model */ 522 - const struct scache wb_msr = { 522 + static const struct scache wb_msr = { 523 523 .ie = __enable_icache_msr, 524 524 .id = __disable_icache_msr, 525 525 .ifl = __flush_icache_all_noirq, ··· 535 535 }; 536 536 537 537 /* There is only difference in ie, id, de, dd functions */ 538 - const struct scache wb_nomsr = { 538 + static const struct scache wb_nomsr = { 539 539 .ie = __enable_icache_nomsr, 540 540 .id = __disable_icache_nomsr, 541 541 .ifl = __flush_icache_all_noirq, ··· 551 551 }; 552 552 553 553 /* Old wt cache model with disabling irq and turn off cache */ 554 - const struct scache wt_msr = { 554 + static const struct scache wt_msr = { 555 555 .ie = __enable_icache_msr, 556 556 .id = __disable_icache_msr, 557 557 .ifl = __flush_icache_all_msr_irq, ··· 566 566 .dinr = __invalidate_dcache_range_msr_irq_wt, 567 567 }; 568 568 569 - const struct scache wt_nomsr = { 569 + static const struct scache wt_nomsr = { 570 570 .ie = __enable_icache_nomsr, 571 571 .id = __disable_icache_nomsr, 572 572 .ifl = __flush_icache_all_nomsr_irq, ··· 582 582 }; 583 583 584 584 /* New wt cache model for newer Microblaze versions */ 585 - const struct scache wt_msr_noirq = { 585 + static const struct scache wt_msr_noirq = { 586 586 .ie = __enable_icache_msr, 587 587 .id = __disable_icache_msr, 588 588 .ifl = __flush_icache_all_noirq, ··· 597 597 .dinr = __invalidate_dcache_range_nomsr_wt, 598 598 }; 599 599 600 - const struct scache wt_nomsr_noirq = { 600 + static const struct scache wt_nomsr_noirq = { 601 601 .ie = __enable_icache_nomsr, 602 602 .id = __disable_icache_nomsr, 603 603 .ifl = __flush_icache_all_noirq,