Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: altpciechdma: 64bit type warning fix

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Alan Cox and committed by
Greg Kroah-Hartman
9cfa2bc2 2fdec576

+1 -1
+1 -1
drivers/staging/altpciechdma/altpciechdma.c
··· 550 550 #if 0 551 551 *(u32 *)(buffer_virt + i) = i / PAGE_SIZE + 1; 552 552 #else 553 - *(u32 *)(buffer_virt + i) = (buffer_virt + i); 553 + *(u32 *)(buffer_virt + i) = (u32)(unsigned long)(buffer_virt + i); 554 554 #endif 555 555 #if 0 556 556 compare((u32 *)buffer_virt, (u32 *)(buffer_virt + 2 * PAGE_SIZE), 8192);