diff options
author | kernel test robot <lkp@intel.com> | 2021-04-27 06:33:57 +0800 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-05-15 10:27:58 +0100 |
commit | fcb8283920b135bca2916133e2383a501ad57eaa (patch) | |
tree | 37953e73d6447f78f6ad88dc41e6f933053bba13 /arch/m68k/Kconfig.cpu | |
parent | e44b49f623c77bee7451f1a82ccfb969c1028ae2 (diff) |
KVM: arm64: Fix boolreturn.cocci warnings
arch/arm64/kvm/mmu.c:1114:9-10: WARNING: return of 0/1 in function 'kvm_age_gfn' with return type bool
arch/arm64/kvm/mmu.c:1084:9-10: WARNING: return of 0/1 in function 'kvm_set_spte_gfn' with return type bool
arch/arm64/kvm/mmu.c:1127:9-10: WARNING: return of 0/1 in function 'kvm_test_age_gfn' with return type bool
arch/arm64/kvm/mmu.c:1070:9-10: WARNING: return of 0/1 in function 'kvm_unmap_gfn_range' with return type bool
Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci
Fixes: cd4c71835228 ("KVM: arm64: Convert to the gfn-based MMU notifier callbacks")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210426223357.GA45871@cd4295a34ed8
Diffstat (limited to 'arch/m68k/Kconfig.cpu')
0 files changed, 0 insertions, 0 deletions