Commit 5ce04e3de8c36ba37c56e94e3c4dc7973c7f546c

Authored by Pallipadi, Venkatesh
Committed by Ingo Molnar
1 parent 92b9af9e4f

fix warning in io_mapping_map_wc()

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

include/linux/io-mapping.h
... ... @@ -91,8 +91,11 @@
91 91 static inline void *
92 92 io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset)
93 93 {
  94 + resource_size_t phys_addr;
  95 +
94 96 BUG_ON(offset >= mapping->size);
95   - resource_size_t phys_addr = mapping->base + offset;
  97 + phys_addr = mapping->base + offset;
  98 +
96 99 return ioremap_wc(phys_addr, PAGE_SIZE);
97 100 }
98 101