diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-04-18 19:04:55 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-22 12:08:26 +0300 |
commit | 046982c760bcbb0d92981a7be577dbc081323a78 (patch) | |
tree | 6f804f00cc4183e405691cbda52ac9534ad4be8f /arch/nios2/include/asm/page.h | |
parent | 921b1f52c942ad2da971c38f54a2045ec7cfe9cb (diff) | |
download | linux-046982c760bcbb0d92981a7be577dbc081323a78.tar.xz |
nios2: use correct void* return type for page_to_virt()
To align with other architectures, the expression produced by expanding
the macro page_to_virt() should be of type void*, since it returns a
virtual address. Fix that, and also fix up an instance where page_to_virt
was expected to return 'unsigned long', and drop another instance that was
entirely unused (page_to_bus)
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/nios2/include/asm/page.h')
-rw-r--r-- | arch/nios2/include/asm/page.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/include/asm/page.h b/arch/nios2/include/asm/page.h index 4b32d6fd9d98..c1683f51ad0f 100644 --- a/arch/nios2/include/asm/page.h +++ b/arch/nios2/include/asm/page.h @@ -84,7 +84,7 @@ extern struct page *mem_map; ((void *)((unsigned long)(x) + PAGE_OFFSET - PHYS_OFFSET)) #define page_to_virt(page) \ - ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET) + ((void *)(((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET) # define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT) # define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && \ |