File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ static inline pgprot_t arch_vm_get_page_prot(unsigned long vm_flags)
31
31
}
32
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
36
if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM | PROT_SAO ))
37
- return 0 ;
37
+ return false ;
38
38
if ((prot & PROT_SAO ) && !cpu_has_feature (CPU_FTR_SAO ))
39
- return 0 ;
40
- return 1 ;
39
+ return false ;
40
+ return true ;
41
41
}
42
42
#define arch_validate_prot (prot ) arch_validate_prot(prot)
43
43
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ static inline void vm_unacct_memory(long pages)
49
49
*
50
50
* Returns true if the prot flags are valid
51
51
*/
52
- static inline int arch_validate_prot (unsigned long prot )
52
+ static inline bool arch_validate_prot (unsigned long prot )
53
53
{
54
54
return (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM )) == 0 ;
55
55
}
You can’t perform that action at this time.
0 commit comments