projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a25b6f
)
powerpc/kernel: Convert mmu_has_feature() to returning bool
author
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 27 Jul 2016 03:39:42 +0000
(13:39 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 1 Aug 2016 01:14:58 +0000
(11:14 +1000)
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>
arch/powerpc/include/asm/mmu.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/include/asm/mmu.h
b/arch/powerpc/include/asm/mmu.h
index 599781e48552960d1f4937ae2e08c14ad7465c67..eb942a4469696b660af1ec34046cb3eef510787b 100644
(file)
--- 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)