[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210824072124.61750-1-deng.changcheng@zte.com.cn>
Date: Tue, 24 Aug 2021 00:21:24 -0700
From: CGEL <cgel.zte@...il.com>
To: Steve Wahl <steve.wahl@....com>
Cc: Mike Travis <mike.travis@....com>,
Dimitri Sivanich <dimitri.sivanich@....com>,
Russ Anderson <russ.anderson@....com>,
Thomas Gleixner <tglx@...utronix.de>, x86@...nel.org,
linux-kernel@...r.kernel.org,
Jing Yangyang <jing.yangyang@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] x86:uv: fix boolreturn.cocci warnings
From: Jing Yangyang <jing.yangyang@....com.cn>
./arch/x86/include/asm/uv/uv.h:36:53-54:WARNING:return of 0/1 in
function 'is_early_uv_system' 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
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@....com.cn>
---
arch/x86/include/asm/uv/uv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/uv/uv.h b/arch/x86/include/asm/uv/uv.h
index 648eb23..9395925 100644
--- a/arch/x86/include/asm/uv/uv.h
+++ b/arch/x86/include/asm/uv/uv.h
@@ -33,7 +33,7 @@ static inline bool is_early_uv_system(void)
#else /* !X86_UV */
static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
-static inline bool is_early_uv_system(void) { return 0; }
+static inline bool is_early_uv_system(void) { return false; }
static inline int is_uv_system(void) { return 0; }
static inline int is_uv_hubbed(int uv) { return 0; }
static inline void uv_cpu_init(void) { }
--
1.8.3.1
Powered by blists - more mailing lists