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

[MIPS] SMTC: Fix build error.

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>

authored by

Frank Rowand and committed by
Ralf Baechle
c2a04c4f a7da60f4

+3 -3
+3 -3
include/asm-mips/smtc_ipi.h
··· 49 49 50 50 static inline void smtc_ipi_nq(struct smtc_ipi_q *q, struct smtc_ipi *p) 51 51 { 52 - long flags; 52 + unsigned long flags; 53 53 54 54 spin_lock_irqsave(&q->lock, flags); 55 55 if (q->head == NULL) ··· 98 98 99 99 static inline void smtc_ipi_req(struct smtc_ipi_q *q, struct smtc_ipi *p) 100 100 { 101 - long flags; 101 + unsigned long flags; 102 102 103 103 spin_lock_irqsave(&q->lock, flags); 104 104 if (q->head == NULL) { ··· 114 114 115 115 static inline int smtc_ipi_qdepth(struct smtc_ipi_q *q) 116 116 { 117 - long flags; 117 + unsigned long flags; 118 118 int retval; 119 119 120 120 spin_lock_irqsave(&q->lock, flags);