mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.5 patch] postfix a constant in cciss.c with ULL
@ 2003-06-24 17:30 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2003-06-24 17:30 UTC (permalink / raw)
  To: Cciss-discuss; +Cc: linux-kernel, trivial

The patch below postfixes a constant in cciss.h with ULL, on 32 bit
archs this constant is too big for an int.

The cast doesn't do the right thing, 0xffffffffffffffff is in C an int 
and the cast casts 0xffffffffffffffff interpreted as an int to an u64.

Please apply
Adrian

--- linux-2.5.73-not-full/drivers/block/cciss.c.old	2003-06-23 21:35:15.000000000 +0200
+++ linux-2.5.73-not-full/drivers/block/cciss.c	2003-06-23 21:36:07.000000000 +0200
@@ -2457,7 +2457,7 @@
 	hba[i]->pdev = pdev;
 
 	/* configure PCI DMA stuff */
-	if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffff))
+	if (!pci_set_dma_mask(pdev, 0xffffffffffffffffULL))
 		printk("cciss: using DAC cycles\n");
 	else if (!pci_set_dma_mask(pdev, 0xffffffff))
 		printk("cciss: not using DAC cycles\n");

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-24 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-24 17:30 [2.5 patch] postfix a constant in cciss.c with ULL Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®