Skip to contentSkip to conversation

Fix compilation warnings in arch/mips/sibyte/bcm1480/smp.c

PATCH New Mark Mason 1 participant 1 message Oct 11, 2006 MIPS

lore
Share & tools
lore

Mark Mason

author
#0 lore raw

PATCH 1/1 Fix compilation warnings in arch/mips/sibyte/bcm1480/smp.c

Modified types of mailbox register arrays in order to prevent compilation warnings. Changes are against 2.6.18-rc4, but should apply cleanly to the tip as well.

---
 arch/mips/sibyte/bcm1480/smp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
arch/mips/sibyte/bcm1480/smp.c +3 -3
index 584a4b3..4f60142 100644
@@ -34,21 +34,21 @@ extern void smp_call_function_interrupt(
  * independent of board/firmware
  */
 
-static void *mailbox_0_set_regs[] = {
+static volatile void *mailbox_0_set_regs[] = {
 	IOADDR(A_BCM1480_IMR_CPU0_BASE + R_BCM1480_IMR_MAILBOX_0_SET_CPU),
 	IOADDR(A_BCM1480_IMR_CPU1_BASE + R_BCM1480_IMR_MAILBOX_0_SET_CPU),
 	IOADDR(A_BCM1480_IMR_CPU2_BASE + R_BCM1480_IMR_MAILBOX_0_SET_CPU),
 	IOADDR(A_BCM1480_IMR_CPU3_BASE + R_BCM1480_IMR_MAILBOX_0_SET_CPU),
 };
 
-static void *mailbox_0_clear_regs[] = {
+static volatile void *mailbox_0_clear_regs[] = {
 	IOADDR(A_BCM1480_IMR_CPU0_BASE + R_BCM1480_IMR_MAILBOX_0_CLR_CPU),
 	IOADDR(A_BCM1480_IMR_CPU1_BASE + R_BCM1480_IMR_MAILBOX_0_CLR_CPU),
 	IOADDR(A_BCM1480_IMR_CPU2_BASE + R_BCM1480_IMR_MAILBOX_0_CLR_CPU),
 	IOADDR(A_BCM1480_IMR_CPU3_BASE + R_BCM1480_IMR_MAILBOX_0_CLR_CPU),
 };
 
-static void *mailbox_0_regs[] = {
+static volatile void *mailbox_0_regs[] = {
 	IOADDR(A_BCM1480_IMR_CPU0_BASE + R_BCM1480_IMR_MAILBOX_0_CPU),
 	IOADDR(A_BCM1480_IMR_CPU1_BASE + R_BCM1480_IMR_MAILBOX_0_CPU),
 	IOADDR(A_BCM1480_IMR_CPU2_BASE + R_BCM1480_IMR_MAILBOX_0_CPU),
Signature · 1 line
1.1.6.g4e27f