From: Alan Cox Date: Wed, 19 Aug 2009 16:18:04 +0000 (+0100) Subject: Staging: altpciechdma: 64bit type warning fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9cfa2bc2f455aa9ba1b7bd92eb6790d78c8fab4a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: altpciechdma: 64bit type warning fix Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/altpciechdma/altpciechdma.c b/drivers/staging/altpciechdma/altpciechdma.c index 3724b8ad4879..e0c5ba4b4c29 100644 --- a/drivers/staging/altpciechdma/altpciechdma.c +++ b/drivers/staging/altpciechdma/altpciechdma.c @@ -550,7 +550,7 @@ static int __devinit dma_test(struct ape_dev *ape, struct pci_dev *dev) #if 0 *(u32 *)(buffer_virt + i) = i / PAGE_SIZE + 1; #else - *(u32 *)(buffer_virt + i) = (buffer_virt + i); + *(u32 *)(buffer_virt + i) = (u32)(unsigned long)(buffer_virt + i); #endif #if 0 compare((u32 *)buffer_virt, (u32 *)(buffer_virt + 2 * PAGE_SIZE), 8192);