diff options
author | Paul Burton <paul.burton@mips.com> | 2019-05-28 20:05:04 +0300 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-05-29 22:04:44 +0300 |
commit | 31875a5432248e7b0fff2f4f4e8cd96e5d82ceb0 (patch) | |
tree | 12e49b7e7f211cfa606c7590177bbfcf3447c56f /arch/mips/include | |
parent | 074a1e1167afd82c26f6d03a9a8b997d564bb241 (diff) | |
download | linux-31875a5432248e7b0fff2f4f4e8cd96e5d82ceb0.tar.xz |
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
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/page.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index 6b31c93b5eaa..a25643d258cb 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h @@ -249,7 +249,7 @@ static inline int pfn_valid(unsigned long pfn) #define virt_to_pfn(kaddr) PFN_DOWN(virt_to_phys((void *)(kaddr))) #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr)) -extern int __virt_addr_valid(const volatile void *kaddr); +extern bool __virt_addr_valid(const volatile void *kaddr); #define virt_addr_valid(kaddr) \ __virt_addr_valid((const volatile void *) (kaddr)) |