projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92b9af9
)
fix warning in io_mapping_map_wc()
author
Pallipadi, Venkatesh
<venkatesh.pallipadi@intel.com>
Sun, 1 Mar 2009 16:53:27 +0000
(08:53 -0800)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 2 Mar 2009 08:43:32 +0000
(09:43 +0100)
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/io-mapping.h
patch
|
blob
|
history
diff --git
a/include/linux/io-mapping.h
b/include/linux/io-mapping.h
index
cbc2f0c
..
0adb0f9
100644
(file)
--- a/
include/linux/io-mapping.h
+++ b/
include/linux/io-mapping.h
@@
-91,8
+91,11
@@
io_mapping_unmap_atomic(void *vaddr)
static inline void *
io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset)
{
+ resource_size_t phys_addr;
+
BUG_ON(offset >= mapping->size);
- resource_size_t phys_addr = mapping->base + offset;
+ phys_addr = mapping->base + offset;
+
return ioremap_wc(phys_addr, PAGE_SIZE);
}