From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1md8dE-0048Og-9g for kexec@lists.infradead.org; Wed, 20 Oct 2021 10:15:37 +0000 Date: Wed, 20 Oct 2021 12:15:31 +0200 From: Simon Horman Subject: Re: [PATCH] crash_dump: fix boolreturn.cocci warning Message-ID: <20211020101531.GA22371@kernel.org> References: <20211020083905.1037952-1-deng.changcheng@zte.com.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211020083905.1037952-1-deng.changcheng@zte.com.cn> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: cgel.zte@gmail.com Cc: dyoung@redhat.com, bhe@redhat.com, vgoyal@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Changcheng Deng , Zeal Robot On Wed, Oct 20, 2021 at 08:39:05AM +0000, cgel.zte@gmail.com wrote: > From: Changcheng Deng > > ./include/linux/crash_dump.h: 119: 50-51: WARNING: return of 0/1 in > function 'is_kdump_kernel' with return type bool > > Return statements in functions returning bool should use true/false > instead of 1/0. > > Reported-by: Zeal Robot > Signed-off-by: Changcheng Deng Reviewed-by: Simon Horman _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec