* [kvm:queue 62/65] arch/x86/kernel/e820.c:88:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' with return type bool
@ 2019-05-01 14:31 kbuild test robot
2019-05-01 14:31 ` [PATCH] kvm, x86: fix boolreturn.cocci warnings kbuild test robot
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-05-01 14:31 UTC (permalink / raw)
To: KarimAllah Ahmed
Cc: kbuild-all, kvm, Robert Hu, Farrah Chen, Danmei Wei, Paolo Bonzini
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: e9c16c78503dd0482b876761d60a3d2f50ac4d86
commit: 0c55671f84fffe591e8435c93a8c83286fd6b8eb [62/65] kvm, x86: Properly check whether a pfn is an MMIO or not
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
coccinelle warnings: (new ones prefixed by >>)
>> arch/x86/kernel/e820.c:88:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' with return type bool
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] kvm, x86: fix boolreturn.cocci warnings
2019-05-01 14:31 [kvm:queue 62/65] arch/x86/kernel/e820.c:88:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' with return type bool kbuild test robot
@ 2019-05-01 14:31 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2019-05-01 14:31 UTC (permalink / raw)
To: KarimAllah Ahmed
Cc: kbuild-all, kvm, Robert Hu, Farrah Chen, Danmei Wei, Paolo Bonzini
From: kbuild test robot <lkp@intel.com>
arch/x86/kernel/e820.c:88:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' 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: 0c55671f84ff ("kvm, x86: Properly check whether a pfn is an MMIO or not")
CC: KarimAllah Ahmed <karahmed@amazon.de>
Signed-off-by: kbuild test robot <lkp@intel.com>
---
tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head: e9c16c78503dd0482b876761d60a3d2f50ac4d86
commit: 0c55671f84fffe591e8435c93a8c83286fd6b8eb [62/65] kvm, x86: Properly check whether a pfn is an MMIO or not
e820.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -85,9 +85,9 @@ static bool _e820__mapped_any(struct e82
continue;
if (entry->addr >= end || entry->addr + entry->size <= start)
continue;
- return 1;
+ return true;
}
- return 0;
+ return false;
}
bool e820__mapped_raw_any(u64 start, u64 end, enum e820_type type)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-01 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-01 14:31 [kvm:queue 62/65] arch/x86/kernel/e820.c:88:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' with return type bool kbuild test robot
2019-05-01 14:31 ` [PATCH] kvm, x86: fix boolreturn.cocci warnings kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.