mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-18 21:37:41 +07:00
fix warning in io_mapping_map_wc()
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
92b9af9e4f
commit
5ce04e3de8
@ -91,8 +91,11 @@ io_mapping_unmap_atomic(void *vaddr)
|
|||||||
static inline void *
|
static inline void *
|
||||||
io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset)
|
io_mapping_map_wc(struct io_mapping *mapping, unsigned long offset)
|
||||||
{
|
{
|
||||||
|
resource_size_t phys_addr;
|
||||||
|
|
||||||
BUG_ON(offset >= mapping->size);
|
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);
|
return ioremap_wc(phys_addr, PAGE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user