Skip to content

Commit

Permalink
[MIPS] SMTC: Fix build error.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frank Rowand authored and Ralf Baechle committed Jan 22, 2008
1 parent a7da60f commit c2a04c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/asm-mips/smtc_ipi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit c2a04c4

Please sign in to comment.