Skip to contentSkip to conversation

64 bit bug in video1394.c

PATCH In review [email protected] 2 participants 2 messages Aug 16, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 64 bit bug in video1394.c

Hi

drivers/message/i2o/i2o_block.c cpu flags in 'int' which breaks on 64 bit boxes.

Here's a patch.

Jes

message/i2o/i2o_block.c renamed from message/i2o/i2o_block.c~ +2 -2
@@ -721,7 +721,7 @@
 static int i2ob_evt(void *dummy)
 {
 	unsigned int evt;
-	unsigned int flags;
+	unsigned long flags;
 	int unit;
 	int i;
 	//The only event that has data is the SCSI_SMART event.
@@ -1706,7 +1706,7 @@
 {	
 	int unit = 0;
 	int i = 0;
-	int flags;
+	unsigned long flags;
 
 	spin_lock_irqsave(&io_request_lock, flags);
 
#1 lore raw

Can't you just redefine int to unsigned long for 64-bit system?

Thanks,
Jeff
[ [email protected] ]

Quoted 7 lines · On Thu, 16 Aug 2001 [email protected] wrote:

Hi

drivers/message/i2o/i2o_block.c cpu flags in 'int' which breaks on 64 bit boxes.

Here's a patch.