Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp969231rdh; Fri, 27 Oct 2023 00:17:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHd/5lgjy9Lg/YFt8CJBLf1gDa3XWtbgOArtIZ+qQrAkCA6Cg/I7eszY1K35YMCn2DHHqiR X-Received: by 2002:a81:ad04:0:b0:5af:b4c4:5668 with SMTP id l4-20020a81ad04000000b005afb4c45668mr1147170ywh.6.1698391051360; Fri, 27 Oct 2023 00:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698391051; cv=none; d=google.com; s=arc-20160816; b=AtgxrbvnpPHWUd1WxvBC/2PvzI7bUan9KqXnsmXP4Fv/XpEdDXmN/SeE8gchO+yCnO vPrRTxwJWJuyevILKcZpbD8S7QrPwIDsCaUA5OasSH4WbokPV+MVB13+6NJ5s1+Snrwm V0hjUx9uVQo7pmG7bKbA8Fsskaiw7t2YxTsqJd8T6vF++3Bixk5f6aw+XF2hAgil6sYL gSeuBit/yZV29SKeVZ5Dr6eZASBt76xw3sIV9oWY0fp3DJj7wu2TMO7nXQwu014g7Ceu OtS6rodQ5w3GZjaP00knqSlIZITvifF85yXdrSooZ0BFC6+HLgacofTw7GtZCI437/a0 YeYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=78mlGyNb87SAXIzTHH9wHdEJ3+n0k/hjErYlooySLEw=; fh=PU6V3MAKpmcQ+8aDMW2iAeTgDy7f0jhWBqRKPIoxCHo=; b=ahYbqsB6YUIbI1g4SkEKvM/xcjRwSRnJ6vjOh3IYrT062mgsQLOh0kXS9/dwp2l4AY fDsYwFrHilQnqR/q339nTsYSXbmVZeePdHJCyFC7cXumCNQrK6N+ynQUx6cwd0NYHMbl RpeF5VDFkZyvNyfbLwIoZ1p8KQnDOVyFZtnxSWnEjnDaeUofpvkppSy/y9Z2Mj3J9RAx lbemFc/BHdchHMoK5Cfq9BmTEBStC2vKAVHSktZ7nLW3UGhVt5OUcJrKWnjbl2UXnAZ5 cvH2pOX2052kgGCNvcyUsxcf6P/YPu74d08KhqJ9VC1Gt0YkLwNvfIqhjtI5oKKu3XbS rxpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0nGMnJTi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q68-20020a0dce47000000b005a7af0b5ea8si1500704ywd.194.2023.10.27.00.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 00:17:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0nGMnJTi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 683D381F4711; Fri, 27 Oct 2023 00:17:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345342AbjJ0HRK (ORCPT + 99 others); Fri, 27 Oct 2023 03:17:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345425AbjJ0HQ5 (ORCPT ); Fri, 27 Oct 2023 03:16:57 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A3AA1985; Fri, 27 Oct 2023 00:16:45 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5A3EC433C8; Fri, 27 Oct 2023 07:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698391004; bh=CBkxV/uFvpzCOvXq/7DVXjOGLxxi3GTw/t/A+HTWNJE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0nGMnJTiNrrl2+rN9XPzMH2IcacHjDqVSv6UlJ/cULBbI+YiCV5QLG5YHCkoLKuZK eeItrfl/qeCk8SU0jS7rudj7Bw5yKwjE7UVm1sMMjxhAuaTUyeUJGdRosPS0Nhtjfx hoafJV4TNcsIqxE1mhrXswdKwYOML9x0OuA/Xw6c= Date: Fri, 27 Oct 2023 09:16:41 +0200 From: Greg KH To: Su Hui Cc: joel@jms.id.au, andrew@codeconstruct.com.au, robh@kernel.org, arnd@arndb.de, roblip@gmail.com, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] soc: aspeed: lpc: Fix impossible judgment condition Message-ID: <2023102730-outmatch-rising-14f0@gregkh> References: <20231027020703.1231875-1-suhui@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231027020703.1231875-1-suhui@nfschina.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 27 Oct 2023 00:17:28 -0700 (PDT) On Fri, Oct 27, 2023 at 10:07:04AM +0800, Su Hui wrote: > smatch error: > drivers/soc/aspeed/aspeed-lpc-snoop.c:169 > aspeed_lpc_snoop_config_irq() warn: platform_get_irq() does not return zero > > platform_get_irq() return non-zero IRQ number or negative error code, > change '!lpc_snoop->irq' to 'lpc_snoop->irq < 0' to fix this. > > Fixes: 9f4f9ae81d0a ("drivers/misc: add Aspeed LPC snoop driver") > Signed-off-by: Su Hui > --- > drivers/soc/aspeed/aspeed-lpc-snoop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot