Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1862635ybk; Mon, 11 May 2020 06:13:33 -0700 (PDT) X-Google-Smtp-Source: APiQypImapA1v1iIFpKEPYyiTyh6bAoD5Z1o5iKJzjIesPBR7IwALiGT7j3eX77+Hdiqd9yi0WGA X-Received: by 2002:a17:906:4e02:: with SMTP id z2mr13103770eju.212.1589202813362; Mon, 11 May 2020 06:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589202813; cv=none; d=google.com; s=arc-20160816; b=He3kbdumdvGb/GlfaENYDylGaqkoE7X7/sFZEvUAkPpRVxnQkQ+vwNeoHJDVulNduQ G+85eN397BpSC8XiBFIYvXJl7+NWe6MWJ7iSYFjRw1LkACR5FD7als3NNe+D4ggYbAKk i6UJf8qyCzJdb9qqXoOTOAfIytU0ai6Aw/TJl8lfSbs7Mf3FsvbgYq/MDCA81Zjy8+vI VKNBQTqpOntHb3lh2efs8uPaFS94oMb+tHlUcDggn4SDyoMVEORPFUnWqpI4pruSwYBh L0jPyuVJzURDBpVDL7Neh22l5LBunWTB27WhOAU363bKsKeWpxAfTd8ucv7Pk9jDR7Gs 0EfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Dvv6tJzVeSp90KNaJF9Iza45Xb9aV8/SHy0QZUnd5+U=; b=JhjCrb9yqPlYULWQq7lsS0Reh7Fdnzm/SNScrtV0GZH1uQsKIl+c9VlCirWKITjXPD oblNaO1rVT4HR3ZmAZj69WEVx1qOWmjwTpOt0JT/ZwYWR6Ej+beIkdyGON+/NJ0xCc3F J32eHIxf22JKxS9ODKw3RoFslCV7AcNmiSoaHpxifoSbYrdZaWqmP/HPuIqdKAhv8Bgk tiP4BIZYSqQaSqH7yYEmRwO5ni5d7q118dQmtQ4OIXZpxtX9nywaWRK+owjXtfI6SWAT bGDDqjq+GVysQSQSDP4ZpjAPVZ0lw6FglQcX8HssefhW2WLwYFcnsjrOqeRnFd4oixkH PQHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q44kjiia; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si3046297ejc.411.2020.05.11.06.13.07; Mon, 11 May 2020 06:13:33 -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=@linaro.org header.s=google header.b=q44kjiia; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729485AbgEKNJD (ORCPT + 99 others); Mon, 11 May 2020 09:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726687AbgEKNJD (ORCPT ); Mon, 11 May 2020 09:09:03 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3F44C061A0C for ; Mon, 11 May 2020 06:09:02 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id j5so10896484wrq.2 for ; Mon, 11 May 2020 06:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Dvv6tJzVeSp90KNaJF9Iza45Xb9aV8/SHy0QZUnd5+U=; b=q44kjiiaaYaBbDkBcrfJCt7AWGhDC8EznfPHDU4j48RSdJmdY9PpTBBunwUCdjbUOR AzVWkWagGb/SMOCOMruhWmrtrfWmHVo9/iMRA/VkX/c1SJhRIm1EbY1g0sCxps4ybA3x NUselnnn4UfbaxQdcCcoq1bofN9xIOb0tcW3kBLrKAxmwa/geFItZ0kAfd8LVaEsIhgj Cvxy9v2Gz9loj8C6GUlIWCe7SrbCkskcqFR9JtBntGjKu/N8LAhvLZBm4vhP1/D7njQg mVpISTXAMNnC+DmGBotieInbAh/at6M5GpBVcVloauw1vp9BRc8m5V9P2z26G4IQcX+w Kniw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Dvv6tJzVeSp90KNaJF9Iza45Xb9aV8/SHy0QZUnd5+U=; b=ha3ERoZynce40lVIRR0Ucgt9JPO9xGzxeSlAqDU8l3pNnFA/7/0y6WiIGmoK8IVCXv r3BJLXZ/JhNkzeZqQf/A7Au2A6jllrTc+8gSFlVmV/ni0L/skOska0QE58KUBMNi9bMQ QTqhR3f4ep2cclQYi60jjXLS7GYMaNsOsczVNTzeOCaeBxY65dNGPWWMZVWkmmVcibhi QDJz6CS32pa3vNca7eysSTLCv1+eSIoOGYXnZhjOQlStGwyF0fvLYsAC7Q3ZNAUOAO+f ccQ1Jmv8gC/TQ4+jWr3wZlYvGznTdVjhGst0kUgyq0KdyCEqMbDgo5O5u5EsxCjHJ+JA cKIA== X-Gm-Message-State: AGi0PubCGjofmeydYuyst5ZQswi3UcY0kkvqdaty+FiWaqwnHLrJbO5M sktPERJSNxc73LM5IEfIyYDPXm1n5Ubmew== X-Received: by 2002:a5d:66c9:: with SMTP id k9mr16929992wrw.307.1589202541411; Mon, 11 May 2020 06:09:01 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id f123sm13589695wmf.44.2020.05.11.06.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 06:09:00 -0700 (PDT) Date: Mon, 11 May 2020 14:08:59 +0100 From: Daniel Thompson To: Jason Yan Cc: jason.wessel@windriver.com, dianders@chromium.org, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kgdb: Return true in kgdb_nmi_poll_knock() Message-ID: <20200511130859.hfbxuc2y54ih4kjf@holly.lan> References: <20200507110649.37426-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507110649.37426-1-yanaijie@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 07:06:49PM +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > include/linux/kgdb.h:301:54-55: WARNING: return of 0/1 in function > 'kgdb_nmi_poll_knock' with return type bool > > Signed-off-by: Jason Yan Applied, thanks. > --- > include/linux/kgdb.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h > index b072aeb1fd78..042828aeb73d 100644 > --- a/include/linux/kgdb.h > +++ b/include/linux/kgdb.h > @@ -298,7 +298,7 @@ extern bool kgdb_nmi_poll_knock(void); > #else > static inline int kgdb_register_nmi_console(void) { return 0; } > static inline int kgdb_unregister_nmi_console(void) { return 0; } > -static inline bool kgdb_nmi_poll_knock(void) { return 1; } > +static inline bool kgdb_nmi_poll_knock(void) { return true; } > #endif > > extern int kgdb_register_io_module(struct kgdb_io *local_kgdb_io_ops); > -- > 2.21.1 >