diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2019-08-11 20:31:20 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-07 18:59:25 +0200 |
commit | d1d45f98a6e61e2e57b15b16b50deeffe40ef8f7 (patch) | |
tree | a63661c9e82e632fedfaf93618bd4a9d70e3b2a5 /include/crypto/sha512_base.h | |
parent | 7bd355196324244d2488eb791df865c60b75258b (diff) | |
download | linux-stable-d1d45f98a6e61e2e57b15b16b50deeffe40ef8f7.tar.gz linux-stable-d1d45f98a6e61e2e57b15b16b50deeffe40ef8f7.tar.bz2 linux-stable-d1d45f98a6e61e2e57b15b16b50deeffe40ef8f7.zip |
MIPS: tlbex: Explicitly cast _PAGE_NO_EXEC to a boolean
[ Upstream commit c59ae0a1055127dd3828a88e111a0db59b254104 ]
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.
Explicitly cast this value to a boolean so that clang understands we
intend for this to be a non-zero value.
Fixes: 00bf1c691d08 ("MIPS: tlbex: Avoid placing software PTE bits in Entry* PFN fields")
Link: https://github.com/ClangBuiltLinux/linux/issues/609
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: clang-built-linux@googlegroups.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/crypto/sha512_base.h')
0 files changed, 0 insertions, 0 deletions