Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1276573pxb; Wed, 20 Oct 2021 01:40:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOilXsoKFTzs/LrE0B9JHz+ZugEnw+ij5KQvTxeb47pUcX203sldscCWEtZi/DOrTEjeLR X-Received: by 2002:a17:902:e881:b0:13f:2a76:bbfa with SMTP id w1-20020a170902e88100b0013f2a76bbfamr37956002plg.10.1634719243522; Wed, 20 Oct 2021 01:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634719243; cv=none; d=google.com; s=arc-20160816; b=sGx3t/0ubIZUUrMxPU2pL/ldI3CItZeg+qHQ2S1nSoAVmyYJgLyMoZOZZMW+ZQ36ST Z60IRCJfDKoq79LTmx011FWzWz4E6UOWIvWs3smadSUSbAOhvX5uNxbRohHgKgvMzVFK XB8oi0jhm+W3N6gBigkdFd444FKygCs/1/imE0cGHYFpC0RUVZP5Rqaavz40busogEWq 9pjC0aaHErSG12hE4ZPZ9yMDgg+F1pj8zz1VmqCTvtDqnwJw4oTENQGKRa7HAy6bF5zq fWB9coclCLturrzz1TpkK/XofsovHyL0nH+/VBFqzLe86oalnfUtUqXliooUyLeR7Y11 U9PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JF15sfNwwfEwBQ657gkVDcUexVAn9CVFnFmWMtipM6Q=; b=TfW5tA1F5cI1HrLc/uFKSYn/cNO4Xr7m9R118QfLfuf3Htqi3Pe7T2tgTxxDc+1nrN emwLLrStCPp4M5c5bJJnTO/gGDkgeAYY4ScJrT78n/1Mg3oUF4YlSY4tBQoX71cPIFVP 7r8xb9FlL/VgR6fIZUOH0wtVerbJubOozW/vpMO2+Y0o1fD8l0P5Q9d32uHjqKRThN/f RELHhCdbw7D2FGyWAALuRjbQxbWbYZstTitAPgcF00U4ufYQCx2deIJ1kK6XhBlgj4Ed hM/99ENlbpE/Q5bPYKRnJe0PbHUJmSGY8RE8tUCCTfTC/UYHrmirb8su7TH4TAvEpdcF jmUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=P1tV1TfA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si2403562pgg.149.2021.10.20.01.40.30; Wed, 20 Oct 2021 01:40:43 -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=@gmail.com header.s=20210112 header.b=P1tV1TfA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbhJTIlo (ORCPT + 99 others); Wed, 20 Oct 2021 04:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbhJTIlg (ORCPT ); Wed, 20 Oct 2021 04:41:36 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AAA4C06161C for ; Wed, 20 Oct 2021 01:39:22 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id e5-20020a17090a804500b001a116ad95caso1954959pjw.2 for ; Wed, 20 Oct 2021 01:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JF15sfNwwfEwBQ657gkVDcUexVAn9CVFnFmWMtipM6Q=; b=P1tV1TfA4vmWXVaZ0Llmy0WJERW8JbVK/ln6qsE2H8MgMDDOtR2rAW933nZXfB6col 9OuvFhvdVmYmukXoDtJd4nFfdzORniU43GaHVeV7TPP/9THRQ5XdAuQ1crLwz7dKnJl0 4PCzh95+CQQKnVjqPQkku3WHbF31xb4T6LFVmF6uuRal9Rg6c97F+U9lT8T+jwLIFTh/ 8dZrYwOOWgRRP3DJknWBKJidXB7iI/VPCjSmTGohvBPmgSzXxtPLJtgh+9HS9F3XWTgw sSPhJu9vENLTIZYFsmlp6B/tU0GBcwrbhaoLLSN6QfdvgzUR+98aFZvoXsAXs0V6JOE8 Zr1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JF15sfNwwfEwBQ657gkVDcUexVAn9CVFnFmWMtipM6Q=; b=v+fP9QdkN/w0Rz3txHksVFUwIn4ChjmQTOKnpVaH7kZ2m39EMomMVLZfsWXvKPiE11 txHoalOeMjG6AyasDJ0k1IYV1N8EzovhYlXgQGkD9O4b1rWcO0PCD4KW4nHR76reAQvm gVXf9TUzt1HYIAXe1w/LinA7FREJNXY8LtGhLHMPcU+xKNlt+uyuqxq9i3zuagR2eB/N yoe9oRJZRP4Y9fra4dohQgMCDyprjDS3NSozt9d/RhyR2T7z2deHrBR0qDJuXhiotaty RKWHVhjQuxxtIwmHlEkA7R677L2/C8fI8PnzcwCMvYUeWP6FqIGiZDaFjuPn7Y1T1MW+ fcnw== X-Gm-Message-State: AOAM5307KkBNf6fKjaQ8sU9mY+0XrpSjR7p9VlfwjNhOeOTlCo0ZFdWE Y4W2FRh53jVbIEM+ZG+YfA8= X-Received: by 2002:a17:90a:c595:: with SMTP id l21mr5838635pjt.188.1634719161666; Wed, 20 Oct 2021 01:39:21 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id l29sm1477375pgc.47.2021.10.20.01.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 01:39:20 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: deng.changcheng@zte.com.cn To: dyoung@redhat.com Cc: bhe@redhat.com, vgoyal@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Changcheng Deng , Zeal Robot Subject: [PATCH] crash_dump: fix boolreturn.cocci warning Date: Wed, 20 Oct 2021 08:39:05 +0000 Message-Id: <20211020083905.1037952-1-deng.changcheng@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/linux/crash_dump.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h index 0c547d866f1e..979c26176c1d 100644 --- a/include/linux/crash_dump.h +++ b/include/linux/crash_dump.h @@ -116,7 +116,7 @@ extern void register_vmcore_cb(struct vmcore_cb *cb); extern void unregister_vmcore_cb(struct vmcore_cb *cb); #else /* !CONFIG_CRASH_DUMP */ -static inline bool is_kdump_kernel(void) { return 0; } +static inline bool is_kdump_kernel(void) { return false; } #endif /* CONFIG_CRASH_DUMP */ /* Device Dump information to be filled by drivers */ -- 2.25.1