Re: [PATCH] MIPS: Return true/false (not 1/0) from bool functions

From
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Date
2021-08-21 09:25:31
Also in
lkml
Reply to
Huilong Deng, 2021-08-17
On Tue, Aug 17, 2021 at 10:53:38AM +0800, Huilong Deng wrote:
./arch/mips/kernel/uprobes.c:261:8-9: WARNING: return of 0/1 in function
'arch_uprobe_skip_sstep' with return type bool
./arch/mips/kernel/uprobes.c:78:10-11: WARNING: return of 0/1 in
function 'is_trap_insn' with return type bool
./arch/mips/kvm/mmu.c:489:9-10: WARNING: return of 0/1 in function
'kvm_test_age_gfn' with return type bool
./arch/mips/kvm/mmu.c:445:8-9: WARNING: return of 0/1 in function
'kvm_unmap_gfn_range' with return type bool

Signed-off-by: Huilong Deng <redacted>
---
 arch/mips/kernel/uprobes.c | 10 +++++-----
 arch/mips/kvm/mmu.c        |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]
Thread (2 messages) 2 messages, 2 authors, last reply 2021-08-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help