Commit-ID: 89a965a2027aeec8ef75057bd2be1b5db68d2aee Gitweb: http://git.kernel.org/tip/89a965a2027aeec8ef75057bd2be1b5db68d2aee Author: Pallipadi, Venkatesh <venkatesh.pallipadi@xxxxxxxxx> AuthorDate: Sun, 1 Mar 2009 08:53:27 -0800 Commit: Ingo Molnar <mingo@xxxxxxx> CommitDate: Mon, 2 Mar 2009 09:39:13 +0100 fix warning in io_mapping_map_wc() Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@xxxxxxxxx> Signed-off-by: Ingo Molnar <mingo@xxxxxxx> --- include/linux/io-mapping.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/include/linux/io-mapping.h b/include/linux/io-mapping.h index cbc2f0c..3995c56 100644 --- a/include/linux/io-mapping.h +++ b/include/linux/io-mapping.h @@ -91,8 +91,9 @@ 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); } -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html