summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/mmu.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2016-07-27 13:39:42 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-08-01 11:14:58 +1000
commita81dc9d9957354ee2ebc2e387cbc10cf457b9948 (patch)
tree5c7b9da7de51582c1d89c4ea21d4dc63e994483b /arch/powerpc/include/asm/mmu.h
parent5a25b6f527f9f5bbf5747b1b97e538e6d61bd2f2 (diff)
downloadlinux-stable-a81dc9d9957354ee2ebc2e387cbc10cf457b9948.tar.gz
linux-stable-a81dc9d9957354ee2ebc2e387cbc10cf457b9948.tar.bz2
linux-stable-a81dc9d9957354ee2ebc2e387cbc10cf457b9948.zip
powerpc/kernel: Convert mmu_has_feature() to returning bool
The intention is that the result is only used as a boolean, so enforce that by changing the return type to bool. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/mmu.h')
-rw-r--r--arch/powerpc/include/asm/mmu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h
index 599781e48552..eb942a446969 100644
--- a/arch/powerpc/include/asm/mmu.h
+++ b/arch/powerpc/include/asm/mmu.h
@@ -135,9 +135,9 @@ enum {
0,
};
-static inline int mmu_has_feature(unsigned long feature)
+static inline bool mmu_has_feature(unsigned long feature)
{
- return (MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
+ return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
}
static inline void mmu_clear_feature(unsigned long feature)