Content-Type: multipart/mixed; boundary="===============4584419629580220061==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [PATCH] mm: fix boolreturn.cocci warnings Date: Tue, 14 Apr 2020 07:56:02 +0800 Message-ID: <20200413235602.GA70120@b299a4903e5a> In-Reply-To: <20200413125303.423864-4-npiggin@gmail.com> List-Id: --===============4584419629580220061== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kbuild test robot arch/x86/mm/ioremap.c:465:8-9: WARNING: return of 0/1 in function 'arch_vma= p_p4d_supported' with return type bool arch/x86/mm/ioremap.c:473:8-9: WARNING: return of 0/1 in function 'arch_vma= p_pud_supported' 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 CC: Nicholas Piggin Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/huge-vmall= oc-mappings/20200414-031028 base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for= -next/core ioremap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/mm/ioremap.c +++ b/arch/x86/mm/ioremap.c @@ -462,7 +462,7 @@ EXPORT_SYMBOL(iounmap); = bool arch_vmap_p4d_supported(pgprot_t prot) { - return 0; + return false; } = bool arch_vmap_pud_supported(pgprot_t prot) @@ -470,7 +470,7 @@ bool arch_vmap_pud_supported(pgprot_t pr #ifdef CONFIG_X86_64 return boot_cpu_has(X86_FEATURE_GBPAGES); #else - return 0; + return false; #endif } =20 --===============4584419629580220061==--