]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] SMTC: Fix build error.
authorFrank Rowand <frank.rowand@am.sony.com>
Tue, 15 Jan 2008 22:26:44 +0000 (14:26 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 22 Jan 2008 00:35:23 +0000 (00:35 +0000)
Fix compile warning (which becomes compile error due to -Werror).  Type of
argument "flags" for spin_lock_irqsave() was incorrect in some functions.

Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/smtc_ipi.h

index e09131a6127de1bbd723ad0452db211b7bea4ea4..8ce51757434051d6daa0af76a5a8dd5680304096 100644 (file)
@@ -49,7 +49,7 @@ struct smtc_ipi_q {
 
 static inline void smtc_ipi_nq(struct smtc_ipi_q *q, struct smtc_ipi *p)
 {
-       long flags;
+       unsigned long flags;
 
        spin_lock_irqsave(&q->lock, flags);
        if (q->head == NULL)
@@ -98,7 +98,7 @@ static inline struct smtc_ipi *smtc_ipi_dq(struct smtc_ipi_q *q)
 
 static inline void smtc_ipi_req(struct smtc_ipi_q *q, struct smtc_ipi *p)
 {
-       long flags;
+       unsigned long flags;
 
        spin_lock_irqsave(&q->lock, flags);
        if (q->head == NULL) {
@@ -114,7 +114,7 @@ static inline void smtc_ipi_req(struct smtc_ipi_q *q, struct smtc_ipi *p)
 
 static inline int smtc_ipi_qdepth(struct smtc_ipi_q *q)
 {
-       long flags;
+       unsigned long flags;
        int retval;
 
        spin_lock_irqsave(&q->lock, flags);