projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fdec57
)
Staging: altpciechdma: 64bit type warning fix
author
Alan Cox
<alan@linux.intel.com>
Wed, 19 Aug 2009 16:18:04 +0000
(17:18 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 15 Sep 2009 19:02:26 +0000
(12:02 -0700)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/altpciechdma/altpciechdma.c
patch
|
blob
|
history
diff --git
a/drivers/staging/altpciechdma/altpciechdma.c
b/drivers/staging/altpciechdma/altpciechdma.c
index
3724b8a
..
e0c5ba4
100644
(file)
--- 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);