Skip to contentSkip to conversation

flags as passed to spin_*_irqsave() should be unsigned long.

POWERPC Applied Tony Breeds 2 participants 2 messages Sep 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

---
Found trying to build a -rt kernel, which has a BUILD_BUG_ON(), in this caswe.

 drivers/net/pasemi_mac.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/pasemi_mac.c +2 -2
Index: working/drivers/net/pasemi_mac.c
===================================================================
@@ -524,7 +524,7 @@ static int pasemi_mac_clean_tx(struct pa
 	struct pasemi_mac_buffer *info;
 	struct pas_dma_xct_descr *dp;
 	int start, count;
-	int flags;
+	unsigned long flags;
 
 	spin_lock_irqsave(&mac->tx->lock, flags);
 
@@ -950,7 +950,7 @@ static int pasemi_mac_start_tx(struct sk
 	struct pas_dma_xct_descr *dp;
 	u64 dflags;
 	dma_addr_t map;
-	int flags;
+	unsigned long flags;
 
 	dflags = XCT_MACTX_O | XCT_MACTX_ST | XCT_MACTX_SS | XCT_MACTX_CRC_PAD;
 

Yours Tony

linux.conf.au http://linux.conf.au/ || http://lca2008.linux.org.au/
Jan 28 - Feb 02 2008 The Australian Linux Technical Conference!

#1 lore raw
Quoted 5 lines · Tony Breeds

---
Found trying to build a -rt kernel, which has a BUILD_BUG_ON(), in this caswe.

Thanks, applied. I'll batch it up with the next set of updates to jgarzik.

-Olof