Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2a04c4f authored by Frank Rowand's avatar Frank Rowand Committed by Ralf Baechle
Browse files

[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: default avatarFrank Rowand <frank.rowand@am.sony.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a7da60f4
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -49,7 +49,7 @@ struct smtc_ipi_q {


static inline void smtc_ipi_nq(struct smtc_ipi_q *q, struct smtc_ipi *p)
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);
	spin_lock_irqsave(&q->lock, flags);
	if (q->head == NULL)
	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)
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);
	spin_lock_irqsave(&q->lock, flags);
	if (q->head == NULL) {
	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)
static inline int smtc_ipi_qdepth(struct smtc_ipi_q *q)
{
{
	long flags;
	unsigned long flags;
	int retval;
	int retval;


	spin_lock_irqsave(&q->lock, flags);
	spin_lock_irqsave(&q->lock, flags);