Commit 9cfa2bc2 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

Staging: altpciechdma: 64bit type warning fix

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2fdec576
...@@ -550,7 +550,7 @@ static int __devinit dma_test(struct ape_dev *ape, struct pci_dev *dev) ...@@ -550,7 +550,7 @@ static int __devinit dma_test(struct ape_dev *ape, struct pci_dev *dev)
#if 0 #if 0
*(u32 *)(buffer_virt + i) = i / PAGE_SIZE + 1; *(u32 *)(buffer_virt + i) = i / PAGE_SIZE + 1;
#else #else
*(u32 *)(buffer_virt + i) = (buffer_virt + i); *(u32 *)(buffer_virt + i) = (u32)(unsigned long)(buffer_virt + i);
#endif #endif
#if 0 #if 0
compare((u32 *)buffer_virt, (u32 *)(buffer_virt + 2 * PAGE_SIZE), 8192); compare((u32 *)buffer_virt, (u32 *)(buffer_virt + 2 * PAGE_SIZE), 8192);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment