]> git.baikalelectronics.ru Git - kernel.git/commit
nios2: use correct void* return type for page_to_virt()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 18 Apr 2016 16:04:55 +0000 (18:04 +0200)
committerWill Deacon <will.deacon@arm.com>
Fri, 22 Apr 2016 09:08:26 +0000 (10:08 +0100)
commit4e537d72baab5a0ef06292c54d3d921cd121b78a
tree6f804f00cc4183e405691cbda52ac9534ad4be8f
parent3e1930f00c3f3d99c1d64568306bdf298c113f4d
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>
arch/nios2/include/asm/io.h
arch/nios2/include/asm/page.h
arch/nios2/include/asm/pgtable.h