Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1718546lqg; Mon, 4 Mar 2024 01:18:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXSA4g5uhQerYTVBWIOSCGYoQeX7RG+CpOTwiwjjQ3VZoATJH70E7huPRbi5yKoCwePcgZqvqg8L5K2kjiN01yBKs+MgCcTgS+7+WT3dA== X-Google-Smtp-Source: AGHT+IFYVkK6sgQ0507tlUyejBKgooZiKlkKxshczZOI+BzqfrPCZpayWulX8u4h++DrfKdvIS6C X-Received: by 2002:a17:90a:f007:b0:29b:1c83:4e06 with SMTP id bt7-20020a17090af00700b0029b1c834e06mr5647187pjb.36.1709543895784; Mon, 04 Mar 2024 01:18:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709543895; cv=pass; d=google.com; s=arc-20160816; b=0X4r1Injd5QLHTuq0NiRfgVlU3jYeE/dex7cH9+a6CyL+cTOgLsG0xkdpsPYWcKZOb jYoL9AfLCcR5c5m0/rNFoWH9eN+LtW8SswfyFiMe6s9ZUHDDyivWAyDaSOo/TsKC82ie 0Oq+uJ0NVWsAxIfwHYOLbbJKsBjbQN54LU5asG4WhxCrQvCyDXB8CU2FCJbfByzMZT72 EnwbWkCkqmjRP8BDu97YfF4uWhCcgOojNOeilRjEm6LrU5TiyI08bRBrp0jiC5Q8w6Tm +RsF2iMXLauVDuXrP7p3/Ny/mRZ9jP3GVnQ3PyITld6KEYH3a9AUDTTvZGwqY2D4UDpX 6Nzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :references:subject:to:from:cc:message-id:date:dkim-signature; bh=smtWowPoYhv7nEqimgeA8xDDf1PSEUGTNJKR2E0PKfE=; fh=gnANDl+F2aqN1scNtVq7vACFxuMaiDL3Ex5wOVDCM7U=; b=iyI30fMD2LTRJ2fyhK1sqfIt1KrRKyOUXYPqTs1y+RYLG09la10uxJ8Of8KmZFdAuv RsMLTb1Kjgd6DF9BDVKKpaP1QGqfC+OuWHhfVNQiSBEpH48UAQujD5MRhAGz13zszLps q4ScD62TqQPOn5TkEP1wpjjuMV3SEs5FapnLZJ8gLA6heikuXPgb9xksmnrm2A+59184 x6ce1Wd9V0ybAPxQOc5CgEQravwqTUvrA+xOVQhaUmM5MoLXazI6dPtAi+PvVsM7Mg6X 1aBkBsF1hJ8ZhhlbyLhR1fOKSJdM3+jzRgCzBkvjHIy5Pz92BQmW0WWaqlVsAIzuvdI7 19Cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tak5sBNU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a4-20020a17090a854400b00298cc2f1af3si10119925pjw.28.2024.03.04.01.18.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 01:18:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tak5sBNU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90290-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90290-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 643EE283346 for ; Mon, 4 Mar 2024 09:17:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C53022EF3; Mon, 4 Mar 2024 09:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Tak5sBNU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A269B23747; Mon, 4 Mar 2024 09:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709543816; cv=none; b=ZySTT6uOMkcF5GGJesZsvpTZljkA1u3zsr715wG6xlvXHiJ6E7VJO24mI99MjU/RtRXXRb05yw3LAsfX0XRTeSYrWh6G3+2bJPLHbzmwP/mpu4d6j7BONTjwNt6FGhEYYpTZlwxSjDRxwvnSqT+unXBupjiX4s68du1+zIZzGyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709543816; c=relaxed/simple; bh=smtWowPoYhv7nEqimgeA8xDDf1PSEUGTNJKR2E0PKfE=; h=Content-Type:Date:Message-Id:Cc:From:To:Subject:References: In-Reply-To; b=Q3RmKN6OLUsz6yLmY8jLbdjzcHa7nZMce2nP2pPS6XbVjrdYqa/zhaE1jcLS2Tsnyxj0SBIh1d4PsbL61MZnoqpX/u9pS78RiGRoc8NNJQ0xnfUKc0nAdwe3lLx6ZfK+hRrtRXczihL+8VHIwKm4PZIUdr79QJTvVSnrPM8iJpQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Tak5sBNU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCFA8C433F1; Mon, 4 Mar 2024 09:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709543816; bh=smtWowPoYhv7nEqimgeA8xDDf1PSEUGTNJKR2E0PKfE=; h=Date:Cc:From:To:Subject:References:In-Reply-To:From; b=Tak5sBNUjnXkT+jt+oS3upMdOErw/XV1bnFuq3gV7KE6pHzfe53DwvyBxSTvqOmk5 gtJg0BnwMKflLZksQRhxucvAfFIb/ngzzsCFglrW0Q+6p1EeIhxFRw4Ny+moOxJ9ER BzoxbjOE5qfdnmTNiLcXluFS6MPSkKUBZmhMVwQxgtV931ayWpAAycnqhggvNTDbiN TUarNka6cEvsIydUSzFXP+EthiiuBTrPHyva8eeA3dOJTtY+vHnzpNQMmCncVaP4gw pXY3aJEuuDAmwF0S3RkMKRMxJEtvLO0GMtM1KQGqwhvFHSi67MvIE1NqreluH6qjZV pY9M5r4PlCaCg== Content-Type: multipart/signed; boundary=56c5c757e8efd87fd596512d7c6b13800a50b7e712b376cf74eec9ce7510; micalg=pgp-sha256; protocol="application/pgp-signature" Date: Mon, 04 Mar 2024 10:16:53 +0100 Message-Id: Cc: , , , From: "Michael Walle" To: "Muhammad Usama Anjum" , "Tudor Ambarus" , "Pratyush Yadav" , "Miquel Raynal" , "Richard Weinberger" , "Vignesh Raghavendra" , "Takahiro Kuwano" Subject: Re: [PATCH v2] mtd: spi-nor: core: correct type of i X-Mailer: aerc 0.16.0 References: <20240304090103.818092-1-usama.anjum@collabora.com> In-Reply-To: <20240304090103.818092-1-usama.anjum@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: --56c5c757e8efd87fd596512d7c6b13800a50b7e712b376cf74eec9ce7510 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Mon Mar 4, 2024 at 10:01 AM CET, Muhammad Usama Anjum wrote: > The i should be signed to find out the end of the loop. Otherwise, > i >=3D 0 is always true and loop becomes infinite. Make its type to be > int. > > Fixes: 6a9eda34418f ("mtd: spi-nor: core: set mtd->eraseregions for non-u= niform erase map") > Signed-off-by: Muhammad Usama Anjum Reviewed-by: Michael Walle --56c5c757e8efd87fd596512d7c6b13800a50b7e712b376cf74eec9ce7510 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIgEABYIADAWIQQCnWSOYTtih6UXaxvNyh2jtWxG+wUCZeWRhRIcbXdhbGxlQGtl cm5lbC5vcmcACgkQzcodo7VsRvvI9QD+NBOU1OgPhPQF+0Iw2vVU+MRbcTw0ux1D p4zNxDJ+bogBAIO88z955ZP4Qg575PSYdMtAVZ7V6Xt8v3OTgB8inEwA =0b60 -----END PGP SIGNATURE----- --56c5c757e8efd87fd596512d7c6b13800a50b7e712b376cf74eec9ce7510--