MIPS: Make virt_addr_valid() return bool
authorPaul Burton <paul.burton@mips.com>
Tue, 28 May 2019 17:05:04 +0000 (17:05 +0000)
committerPaul Burton <paul.burton@mips.com>
Wed, 29 May 2019 19:04:44 +0000 (12:04 -0700)
commit31875a5432248e7b0fff2f4f4e8cd96e5d82ceb0
tree12e49b7e7f211cfa606c7590177bbfcf3447c56f
parent074a1e1167afd82c26f6d03a9a8b997d564bb241
MIPS: Make virt_addr_valid() return bool

virt_addr_valid() really returns a boolean value, but currently uses an
integer to represent it. Switch to the bool type to make it clearer that
we really are returning a true or false value.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: linux-mips@vger.kernel.org
arch/mips/include/asm/page.h
arch/mips/mm/mmap.c