Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: tlbex: Explicitly cast _PAGE_NO_EXEC to a boolean
clang warns: arch/mips/mm/tlbex.c:634:19: error: use of logical '&&' with constant operand [-Werror,-Wconstant-logical-operand] if (cpu_has_rixi && _PAGE_NO_EXEC) { ^ ~~~~~~~~~~~~~ arch/mips/mm/tlbex.c:634:19: note: use '&' for a bitwise operation if (cpu_has_rixi && _PAGE_NO_EXEC) { ^~ & arch/mips/mm/tlbex.c:634:19: note: remove constant to silence this warning if (cpu_has_rixi && _PAGE_NO_EXEC) { ~^~~~~~~~~~~~~~~~ 1 error generated. Fixes: 00bf1c6 ("MIPS: tlbex: Avoid placing software PTE bits in Entry* PFN fields") Link: #609 Signed-off-by: Nathan Chancellor <[email protected]>
- Loading branch information