Skip to contentSkip to conversation

Fix 64bit warning for firestream

PATCH New Andi Kleen 1 participant 1 message Jul 17, 2004

Subsystems (3)
lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 Fix 64bit warning for firestream

Fix obvious 64bit issue in firestream driver. I haven't tested if it actually works on 64bit due to lack of hardware.

-Andi

drivers/atm/firestream.c renamed from drivers/atm/firestream.c-o +1 -1
diff -u linux-2.6.8rc1-amd64-pre2/drivers/atm/firestream.c-o linux-2.6.8rc1-amd64-pre2/drivers/atm/firestream.c
@@ -1380,7 +1380,7 @@
 
 	if (alignment <= 0x10) {
 		t = kmalloc (size, flags);
-		if ((unsigned int)t & (alignment-1)) {
+		if ((unsigned long)t & (alignment-1)) {
 			printk ("Kmalloc doesn't align things correctly! %p\n", t);
 			kfree (t);
 			return aligned_kmalloc (size, flags, alignment * 4);