aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-10-01 16:52:41 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-10-03 12:58:56 -0400
commitb7e4226e4f427b59dc8e9c45a2a1a1ed1353a140 (patch)
treef2d3286896807f0b8f16e94c4d09d0bcd6240315 /arch
parent95b866d5afcafee00fc9ad70665e48c86d8c4e0f (diff)
[MIPS] Build fix: Fix irq flags type
Though from a hardware perspective it would be sensible to use only a 32-bit unsigned int type Linux defines interrupt flags to be stored in an unsigned long and nothing else. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/kernel/ptrace.c2
-rw-r--r--arch/mips/kernel/smtc.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
index 35234b92b9a5..96ffc9c6d194 100644
--- a/arch/mips/kernel/ptrace.c
+++ b/arch/mips/kernel/ptrace.c
@@ -238,7 +238,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
238 case FPC_EIR: { /* implementation / version register */ 238 case FPC_EIR: { /* implementation / version register */
239 unsigned int flags; 239 unsigned int flags;
240#ifdef CONFIG_MIPS_MT_SMTC 240#ifdef CONFIG_MIPS_MT_SMTC
241 unsigned int irqflags; 241 unsigned long irqflags;
242 unsigned int mtflags; 242 unsigned int mtflags;
243#endif /* CONFIG_MIPS_MT_SMTC */ 243#endif /* CONFIG_MIPS_MT_SMTC */
244 244
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c
index a516286532ab..05f2708a9029 100644
--- a/arch/mips/kernel/smtc.c
+++ b/arch/mips/kernel/smtc.c
@@ -556,7 +556,7 @@ void mipsmt_prepare_cpus(void)
556void __cpuinit smtc_boot_secondary(int cpu, struct task_struct *idle) 556void __cpuinit smtc_boot_secondary(int cpu, struct task_struct *idle)
557{ 557{
558 extern u32 kernelsp[NR_CPUS]; 558 extern u32 kernelsp[NR_CPUS];
559 long flags; 559 unsigned long flags;
560 int mtflags; 560 int mtflags;
561 561
562 LOCK_MT_PRA(); 562 LOCK_MT_PRA();
@@ -753,7 +753,7 @@ void smtc_send_ipi(int cpu, int type, unsigned int action)
753{ 753{
754 int tcstatus; 754 int tcstatus;
755 struct smtc_ipi *pipi; 755 struct smtc_ipi *pipi;
756 long flags; 756 unsigned long flags;
757 int mtflags; 757 int mtflags;
758 758
759 if (cpu == smp_processor_id()) { 759 if (cpu == smp_processor_id()) {
@@ -975,7 +975,7 @@ static irqreturn_t ipi_interrupt(int irq, void *dev_idm)
975 struct smtc_ipi *pipi; 975 struct smtc_ipi *pipi;
976 unsigned long tcstatus; 976 unsigned long tcstatus;
977 int sent; 977 int sent;
978 long flags; 978 unsigned long flags;
979 unsigned int mtflags; 979 unsigned int mtflags;
980 unsigned int vpflags; 980 unsigned int vpflags;
981 981