Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp30489lqk; Wed, 13 Mar 2024 15:23:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUceVIb+/LkrN5V5qjTkUU7BxFoZCKXihjr88vJ5KVNtFAZ1nN9MMFFKjeiKGObOOjYu/PwZBR5HZPKiGiZSUJFAbJ5SeAC/gi0H2xiKQ== X-Google-Smtp-Source: AGHT+IEC9q6lgCSeeIhWss5O0fYGiDAnF91ofwJbYiygVbJxTt/0MpF2RRnJxyBh/BGf+SOMl1fO X-Received: by 2002:a05:6a20:e116:b0:1a1:5000:225a with SMTP id kr22-20020a056a20e11600b001a15000225amr330634pzb.9.1710368631886; Wed, 13 Mar 2024 15:23:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710368631; cv=pass; d=google.com; s=arc-20160816; b=hcNWOhhMoOQa8AzEibx8YfPgkE7+xZqvRGO9gPGb9WKFzv8kQMUaHpwiaozDOpeFHD pSARvjkRcUUlIKmckWsomYhUEZShZHAxoKIDPElQXVV4AYIfQf6GcfgwvZyGxuT3kEet 8tvB0jxlQ631Fw8eR1tSCrljsxOQ+C05VYigdGEjNLJ+ncoGf4wcm2yyC4JY/2W8CNSd JTFOPkoGdgvjjrgh4WlUK3woDtYb/mwkIHJ3hU727MQ6VQfUcr50c7qRsIhTs9LzyyR0 7DSvgcukhYaPAuJjBzjbRdDuweEs7ijmT2G2tWxuhPS68aKid7AAJMo/5IEfPjrCCGXW pT7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3LF1DgETq3+uAOl/bFUlSXoTzHAoPYEGhBrdRccuLQQ=; fh=ut6ij67JgpRw4OUktu/76jIc/k3HEa/MR0FBiR/JPTs=; b=o6P9oOOJIRGbI5sgeeaAk1q4De/pOXdhjm1xGoD0QcUcPKMFEYoHxC8eVigqUWwq3p aV8zlJzAxDcMV5IwsnZsbiCSV9uSsej/WqFuJQ/jUepky+qqmLtLjXsU/EgB3rHH9vV0 fh7873rxMNgka8CoIiA0SHpEnUXqsc6D6sUw/io5p2mYDiZtR6GfaCCPDxlTMTZ3Mgsz oiT7hImygmV7YDRS2c5igIFN3cwroJfOHvBPQZYxw6EsG8A70611VVpoTZ1hmH45FpNT TJK0WVtSk8QBfdy8aIM9XSuf4hRKRcN9DUffoH4cML5cqnDF3puLhFz7CRmVlvhQqXnN ssZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EoelQSV3; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-102587-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102587-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d5-20020aa78685000000b006e62522d2d5si213878pfo.47.2024.03.13.15.23.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 15:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102587-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=EoelQSV3; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-102587-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102587-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C1889B230F6 for ; Wed, 13 Mar 2024 22:23:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2D015A0F9; Wed, 13 Mar 2024 22:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="EoelQSV3" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.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 293DD59B4A; Wed, 13 Mar 2024 22:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710368605; cv=none; b=GGrcnIuEpLvDGY/pSjguYOavxXrNrzH1G2H4AmN38JYuI8kXUeCEy9oPd5+f58uHKC9T4VPkBXe74VukdW9mCIaSLFBykg9O3MQ1mtbPUWY/68YdkbH+u9CRGaaqoZT+4x08quvdILoPe1VKoXf1z/gqYA3un8hGsdKALaYMOCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710368605; c=relaxed/simple; bh=a8Sh3dNbafbG/9FnX5AWeGa/mggShESsl2IMd9EzZtg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nsOLwT4OaEqg3UtwlTkmlXzPYkGylKxgn2XVOCaidK3bo8NGpX71B2N89hrzkHn+lOPGfNr2ryNau5VcJY1iJLPENX1+SvgASdQr+17HDamnBkxA9aH6CwjBFkrpJ6r4KYL0jv0ZtpjhQCo/KiZYFVwwm6PgFfCk+DN5wTH4zdM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=EoelQSV3; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id D03211BF204; Wed, 13 Mar 2024 22:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1710368599; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3LF1DgETq3+uAOl/bFUlSXoTzHAoPYEGhBrdRccuLQQ=; b=EoelQSV3syJ71nv3hScMYI/oP/f38N7nV2KbckHkGwKn3GP/6MVb3kUVskLwVuEv33dSpb S0swiDDtCYQJPmeOwt/pEmh8F3XF2lPPsfWsLs98O0L9wwaOqSNfqtaZSr+6Ga6BCPyWM+ vus4WQYwUx0dsD2xPAs/syXMYWLvEl6ORZcJNCUTYxy0O8MeZ868zgJvn80aSO9PcvqVyX XkcQOcLcaGBY+CFd99rTkp9TmnWrvXnVpzKgkbdthBHoLGeYw207Z0H4k3KJe921NqZB5u 29RdXywPV7g6Ny4IgGqZKQMDLivSZwNJC9xIFAh2vVahZFGUP8sxhGfETnXo/Q== From: Miquel Raynal To: Muhammad Usama Anjum , Tudor Ambarus , Pratyush Yadav , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Takahiro Kuwano Cc: kernel@collabora.com, kernel-janitors@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mtd: spi-nor: core: correct type of i Date: Wed, 13 Mar 2024 23:23:13 +0100 Message-Id: <20240313222313.800965-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240304090103.818092-1-usama.anjum@collabora.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'2842dc9bc1a53893eec62ec9e49beb3b501702d0' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com On Mon, 2024-03-04 at 09:01:03 UTC, Muhammad Usama Anjum wrote: > The i should be signed to find out the end of the loop. Otherwise, > i >= 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-uniform erase map") > Signed-off-by: Muhammad Usama Anjum > Reviewed-by: Tudor Ambarus > Reviewed-by: Michael Walle > Reviewed-by: Dan Carpenter > Reviewed-by: AngeloGioacchino Del Regno Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel