Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1794161rwb; Sun, 6 Aug 2023 03:07:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhs4hJrSi6UYGqeFcD4p1fShl4syZj2tUD9lETgrROWm6etURerpFvKRMjZ9MPOnpKzmYn X-Received: by 2002:a17:902:988d:b0:1b9:e23a:f761 with SMTP id s13-20020a170902988d00b001b9e23af761mr6633735plp.63.1691316460986; Sun, 06 Aug 2023 03:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691316460; cv=none; d=google.com; s=arc-20160816; b=SFaTVfpaeCpMqHLc+ECPuMUEr4/FB/RbXXplK59RGRI84xIWghHHQqXJvn85LMb9y/ AlBZWzkWbw4LnyyzwCY4yiJlWs/3Qawc92OjLNAoyyySw7eZkbw83EXMQudxTpwl0sXc 8JZMD0KajpIr/2U4x1lLfV2APdoNSskz8YoO9EQf4NLtGOL8mckw7NV0Boy8IKTRl8rS XZkeeIzb9kgY/tPUagdzSuBCQDXWjhsdPo/tfXvzP/MqhSLSxZt3ChRNVp51RSWtgqvF NRtO9u0oytzzJICYKeHprPSN9rtceqpp70BSOJ8rrLgomESCkAl/rULyLJsmJ3i00n5N vU1w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=PUl/rN2mkbNT1ghDGerkeSZT7FB1mE6xTiSr+Cq7Jt4=; fh=GgN81YS+9IlZTzsO0y6Z+bsEXG+zbPwQY/PflUjW79w=; b=HqceTgM3LqELX7Zpx11sXkHT4Rs/mRpiMymgNN2tfKEJEdbOdAWNiEf1MXnn2RXEsM sz3H2imyUjSssVprdY3DPUA0hGhGJIYNUuUW6BLZGp0PeW7qhNWgbdewzWkrKkJzEWQg LruadGFfonMOtf/3cFbZTSAYyL8xoeDdhjB40zM3nfKNod9GkbbXum1h2seIELhEq3I0 Z6Wp7DQbWFmaDgm6/jc/PsOkkEF1rrkhu186MsCOOOckNEHGYyY6Zy3EWiUrYDtc3mDE 7w7ULtbBJ1oSuCgSADTZMsMUBbv8eFOJQpB9c5AY3xiIjJPIkHKwgTBlg0iUXUntWYWR rwkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=hHBSpgfq; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=bZFMflRI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lo8-20020a170903434800b001b6788a54f4si4191198plb.191.2023.08.06.03.07.30; Sun, 06 Aug 2023 03:07:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=hHBSpgfq; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=bZFMflRI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229509AbjHFIyt (ORCPT + 99 others); Sun, 6 Aug 2023 04:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjHFIyr (ORCPT ); Sun, 6 Aug 2023 04:54:47 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C50B519AB; Sun, 6 Aug 2023 01:54:46 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 88BA55C00A6; Sun, 6 Aug 2023 04:54:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 06 Aug 2023 04:54:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1691312083; x=1691398483; bh=PU l/rN2mkbNT1ghDGerkeSZT7FB1mE6xTiSr+Cq7Jt4=; b=hHBSpgfqnSFNXBvL9/ 01f1Pc/cIjYCpch8jObzQZJaUZxf0WTfp6bGNaV4SqfxxkrZ+MAyQXfkO6b6NbFm wL2iy6UkD/o1sVmbeixeoWEpUPykjzlrlpzQhiRumwAweQiyNJgMIdkgMvzND2f1 Hm2wZUiulnEvEcIXG1jiYyYs7lXSBj62UUP2TWgETZ5xPJs76UzHNf5VgMAEo79P +T/dx+gVqwMj4EYhISBTkEietoOQP8X7b8Hmq3thtnlhfNx7oBvC2Rz/JNex5wIH 6lLrBK7/Brwj6bXj/S0HsC5wDr4OI9z3mNR6yDvWEa060T8+8mObd5z6V17I13Ju sMOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691312083; x=1691398483; bh=PUl/rN2mkbNT1 ghDGerkeSZT7FB1mE6xTiSr+Cq7Jt4=; b=bZFMflRIHlgdTKvr1JrLjCBd28U6S HPKOnC7s8JlaFWK3ZriG/N61lZ/tolA9NmQpweDXM+MKyokZB0dFv1LMvgEFN8kc p/SGTMMuMA5ZCrgQQvGmGNKAOWSZa03kLi+I3E+TLJixLerX3khu4nDxm3IRVVwJ 9cLaEJy592RVWJSh8H01jmf5xUfC4E/3sfYUj4eLNw96PCOv0olJDwh7lcLhWsh8 tsdcG3bSRlvOlZammRF+rZ2jsG6zoRsJkBdb6WgkvrJtUZskEOxodlG0/1a4iG5I jK2w3XPrSzSnLvctM4EnGK9/Um6DASR//bUEbmaYAqacT01cOo8NkxywQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrkeekgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkfhggtggujgesthdtre dttddtvdenucfhrhhomhepifhrvghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheq necuggftrfgrthhtvghrnhepkeeuiedugfeuleeitdffkeelleekvdekhfduveffffeuhf fhueeikeevheejtefgnecuffhomhgrihhnpehlihhnuhigfhhouhhnuggrthhiohhnrdho rhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepgh hrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 6 Aug 2023 04:54:42 -0400 (EDT) Date: Sun, 6 Aug 2023 10:54:40 +0200 From: Greg KH To: coolrrsh@gmail.com Cc: broonie@kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH v3] spi: spi-mpc512x-psc: Fix an unsigned comparison that can never be negative Message-ID: <2023080629-vocalize-ducking-c8f2@gregkh> References: <20230806083734.7685-1-coolrrsh@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230806083734.7685-1-coolrrsh@gmail.com> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 06, 2023 at 02:07:33PM +0530, coolrrsh@gmail.com wrote: > From: Rajeshwar R Shinde > > In struct mpc512x_psc_spi, the variable 'irq' is declared as an unsigned int. > The comparison of variable 'irq' with signed int operand is incorrect. Also, > the return value from the call to platform_get_irq(pdev,0) is int and it is > assigned to an unsigned int variable 'irq', thus redeclaring the type of > variable 'irq' to signed int. > > This fixes warning such as: > drivers/spi/spi-mpc512x-psc.c:493:5-13: > WARNING: Unsigned expression compared with zero: mps -> irq < 0 > > --- > drivers/spi/spi-mpc512x-psc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi-mpc512x-psc.c > index 99aeef28a..5cecca1be 100644 > --- a/drivers/spi/spi-mpc512x-psc.c > +++ b/drivers/spi/spi-mpc512x-psc.c > @@ -53,7 +53,7 @@ struct mpc512x_psc_spi { > int type; > void __iomem *psc; > struct mpc512x_psc_fifo __iomem *fifo; > - unsigned int irq; > + int irq; > u8 bits_per_word; > u32 mclk_rate; > > -- > 2.25.1 > > _______________________________________________ > Linux-kernel-mentees mailing list > Linux-kernel-mentees@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees 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: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe 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