diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/mman.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/mman.h b/arch/powerpc/include/asm/mman.h index 2563c435a4b1..fc420cedecae 100644 --- a/arch/powerpc/include/asm/mman.h +++ b/arch/powerpc/include/asm/mman.h | |||
@@ -31,13 +31,13 @@ static inline pgprot_t arch_vm_get_page_prot(unsigned long vm_flags) | |||
31 | } | 31 | } |
32 | #define arch_vm_get_page_prot(vm_flags) arch_vm_get_page_prot(vm_flags) | 32 | #define arch_vm_get_page_prot(vm_flags) arch_vm_get_page_prot(vm_flags) |
33 | 33 | ||
34 | static inline int arch_validate_prot(unsigned long prot) | 34 | static inline bool arch_validate_prot(unsigned long prot) |
35 | { | 35 | { |
36 | if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) | 36 | if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO)) |
37 | return 0; | 37 | return false; |
38 | if ((prot & PROT_SAO) && !cpu_has_feature(CPU_FTR_SAO)) | 38 | if ((prot & PROT_SAO) && !cpu_has_feature(CPU_FTR_SAO)) |
39 | return 0; | 39 | return false; |
40 | return 1; | 40 | return true; |
41 | } | 41 | } |
42 | #define arch_validate_prot(prot) arch_validate_prot(prot) | 42 | #define arch_validate_prot(prot) arch_validate_prot(prot) |
43 | 43 | ||