Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1345918pxb; Wed, 20 Oct 2021 03:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq+dGxW0YPK5TG0F+ux9v+vzBb3j0X4Yst/yKRUhZ7qVtgDPDvm6YG8FRxldLE+w7jCfAQ X-Received: by 2002:a17:90b:1c06:: with SMTP id oc6mr6375708pjb.142.1634725028574; Wed, 20 Oct 2021 03:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634725028; cv=none; d=google.com; s=arc-20160816; b=en480FClSGeIrVEdVganBdfK8D6MwLfynPEpHLhjmnt7RBkWvtViAydlQujEiHj7Zm Bzw5lRMCESkQrGHQkmGH19vgkYwduFlPzCcUn7Bevp9GWeq8v+l0B+8uy5td/BrLbxDZ HAwj4dXdThtZLE3WYnLx6neD/J9XhVg4lJmM10qj37oCzIfK1PCvnAca2kS/UqTsp6ko MRQXnijo3+gRV+gsSiZPF5/UKmhMxLr6oQi97TI5wIdRcTK/vyLXajdaO5VCCSv3U15e bpfmlL5/fw0TTSQ/2MsEkr7Holy0zsrhQLvakSIL9Q7wlBPlvm4TpLwM/76BahmPZRPu 5z4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=7KsbV732H8XYWkE1ib6PcG7HMUP8CZfDkpYulfiXcB0=; b=UThthPC6VYkFRPte+J1AEYZwHZ18odq+TVDFzfJYBL4daCSDsRLDts3KhGfOvKD8n5 TWoZdY+eWVi5sYBCPljVWCz9qmx4RybBPoWrmFoaRAKksc3Ej8sn/jJSKRW4BZD89xfz I62zCyv2apGCEI8TUFgosPcgWwZVtM+5qCqygv7oj0EzfwdSRtcvHfh3dVBQZtK9Hidu qonY0qxUwXuUay6NzCHyxYk7Ul9nLg6+YKrAiZRRqxDsP7/dYZPJ5HUWjsFTqPN3pgQy OJIwzkUmyqGaIzIyuDZGxKYRMgW2oIy34owdSanck0VBjTU1Go4o2mJsYZjY9HM7Gw7H lEew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LtN249Tp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mm18si6251190pjb.137.2021.10.20.03.16.55; Wed, 20 Oct 2021 03:17:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LtN249Tp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbhJTKRv (ORCPT + 99 others); Wed, 20 Oct 2021 06:17:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:47326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhJTKRt (ORCPT ); Wed, 20 Oct 2021 06:17:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E3F0361260; Wed, 20 Oct 2021 10:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634724935; bh=TBXK+5pXDxxF4rKwtXGrGQl+CTmrlwmLpTHbFPsrUwk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LtN249TpUD4Rdfj1BqqM7zJg5ZuWvDq0BMVUV83o4MFQ9l37QALdsP9CyW4+TjQsQ Rmgf4fZrWD+LXcEv/hXegPSjMepq5J170PQw2IGAGQgFjbbJW2BmPLGgSf4/nsf6mj /4/VXTlifVUjMHfGfQ2z6Ssj/yv4ZJGm6fJvXaQzHT6kJlij5vis7dLYFYL/LB3Z/Z Q0mRWMnUl5Tm6+VvsjH2WfsLTOytQW1lidq32HKwTMGttO2Q9Q3AY62d3uS76KHfvt HUoh04bo2motNjJGSfqw+FcWO+RsMQniO8Djp7Llj3jbLOei6v3YHJr60PFF0Hdkvg cWbNBosjHoRMg== Date: Wed, 20 Oct 2021 12:15:31 +0200 From: Simon Horman 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 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020083905.1037952-1-deng.changcheng@zte.com.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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