2003-08-11 13:44:49

by Dave Jones

[permalink] [raw]
Subject: [PATCH] CCISS 64bit fixup.

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/block/cciss.c linux-2.5/drivers/block/cciss.c
--- bk-linus/drivers/block/cciss.c 2003-08-07 13:51:31.000000000 +0100
+++ linux-2.5/drivers/block/cciss.c 2003-08-07 14:13:28.000000000 +0100
@@ -2457,7 +2457,7 @@ static int __init cciss_init_one(struct
hba[i]->pdev = pdev;

/* configure PCI DMA stuff */
- if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffff))
+ if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffffULL))
printk("cciss: using DAC cycles\n");
else if (!pci_set_dma_mask(pdev, 0xffffffff))
printk("cciss: not using DAC cycles\n");


2003-08-11 14:48:42

by Jeff Garzik

[permalink] [raw]
Subject: Re: [PATCH] CCISS 64bit fixup.

On Mon, Aug 11, 2003 at 02:40:24PM +0100, [email protected] wrote:
> diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/block/cciss.c linux-2.5/drivers/block/cciss.c
> --- bk-linus/drivers/block/cciss.c 2003-08-07 13:51:31.000000000 +0100
> +++ linux-2.5/drivers/block/cciss.c 2003-08-07 14:13:28.000000000 +0100
> @@ -2457,7 +2457,7 @@ static int __init cciss_init_one(struct
> hba[i]->pdev = pdev;
>
> /* configure PCI DMA stuff */
> - if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffff))
> + if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffffULL))

Remove the cast :)

Jeff