Skip to contentSkip to conversation

kernel make error - smtc_ipi.h irq flags, 2.6.24-rc7

PATCH Applied Frank Rowand 2 participants 2 messages Jan 15, 2008 – Jan 16, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel make error - smtc_ipi.h irq flags, 2.6.24-rc7

From: Frank Rowand <[email protected]>

Fix compile warning (which becomes compile error due to -Werror). Type of argument "flags" for spin_lock_irqsave() was incorrect in some functions.

---
include/asm-mips/smtc_ipi.h | 6 3 + 3 - 0 !

 1 files changed, 3 insertions(+), 3 deletions(-)
include/asm-mips/smtc_ipi.h +3 -3
Index: linux-2.6.24-rc7/include/asm-mips/smtc_ipi.h
===================================================================
@@ -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_
 
 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 s
 
 static inline int smtc_ipi_qdepth(struct smtc_ipi_q *q)
 {
-	long flags;
+	unsigned long flags;
 	int retval;
 
 	spin_lock_irqsave(&q->lock, flags);
Applied
#1 lore raw
Quoted 4 lines · Frank Rowand

From: Frank Rowand <[email protected]>

Fix compile warning (which becomes compile error due to -Werror). Type of argument "flags" for spin_lock_irqsave() was incorrect in some functions.

Thanks, applied.

Ralf