Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1749325lqg; Mon, 4 Mar 2024 02:33:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXmivN//YoLPV0KW8eWNQkGGPyQSMl9EtutH+AEutqYYhtwx3ThF1q3Mw79/P1uJ/Sz4CYFTDCpOV6fTCiXw+tSYWlnWbBhqOs/zUlPcA== X-Google-Smtp-Source: AGHT+IFu79BYUABcNDST4J203h7G+g21iqOoCXtN5S+9MC+xYodvMikr+l9Rnx/3+uul7P8xNBbw X-Received: by 2002:a17:906:e0c:b0:a45:817f:fd85 with SMTP id l12-20020a1709060e0c00b00a45817ffd85mr256510eji.48.1709548419333; Mon, 04 Mar 2024 02:33:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709548419; cv=pass; d=google.com; s=arc-20160816; b=0eXI+UeskQbM+iAAt1kUSIztWEmahd+NYW0aVgOdCB6KXFK+3IzGi7NtorNtA72GWB 9A5HpRl/IDVyL74hPSVsjP33dxI28YGJSJ7J5JLP9zhwzV9MFntV2jT6I6vMODpkK9FT EvRnTrkNkO/aqKxfpXza+EwbxlMSTWW1TLsgYUijXxauEQQcbwXXP3Jf3z4ZkfrU9Xcd sbPEXdYP4CKE/xajIYD1JQpXl5jdfsVrknNcmPj9CAW97IiGF0547Oda9s6vJHrJwDYb Bk2hJPSclcu3mtonseUrbI6v+oAkVKKJZgvbQPNBIS2FeiN7huVU2O2pbOOQnlrCLA2P Eh6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=o9JgdJVfkkIHD/B7OLYUx7zdxg31t9XAHtBAItHQ3hQ=; fh=ut6ij67JgpRw4OUktu/76jIc/k3HEa/MR0FBiR/JPTs=; b=avHzvrJALZca+RpylXWXhK4kKzFtb0AVEoVjrv3NiaQPsu6F0ibooLa9MLLh9/xlju eQM3AVX1cPAMQLIAv2HpP0OlKME2D7p/jTKV3jMLYWnPVTlyCHYbeAV06QYVtV9K+eqn 5TYnVvL/5zk0GMefmweGRlnq/KimHXN79xYN2dy7SqUhjCrMf3h5fksR+LF7onmYZzn6 l5k06ZEOHrVBuuxth5hMDpwIuD0AdLa811unuFxL2zujJxyoy4HrcuQ5w/E3HeGxgCny IaIFgjI9GlhW7EqCQeyHse1UghO7GMzvF9H6MbdKp+9qlUc3mLcN3ibDQAR2FuvFl1aC c0ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=i1yH4fpz; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-90433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e21-20020a170906045500b00a3ed2736d69si3732103eja.29.2024.03.04.02.33.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:33:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=i1yH4fpz; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-90433-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90433-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 am.mirrors.kernel.org (Postfix) with ESMTPS id B7A911F24097 for ; Mon, 4 Mar 2024 10:32:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 384A2364A3; Mon, 4 Mar 2024 10:32:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="i1yH4fpz" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 E98BE20323; Mon, 4 Mar 2024 10:32:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709548344; cv=none; b=b2nWzLqCOOgIxwQDilFeHFsDx9nMOa7CJW1x7z0n/nj9+qNxiizvpQPxaonBx4oEAciM9t7LVqjy2eMxnyziIk5MH/PfCZh+WHb2hz6Jsu3GBGa8gBgTrAyngjNhiXPtEP/FsSh/Y9txmZv1j9Hw8VAzQiDgFe6wSaPMf/++qaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709548344; c=relaxed/simple; bh=KIzJmkOsvRhcMZS0B9T7opj0yBL9GqIfatloVh3/Am4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OhTFh52lJ6mgBsNbESar+OKHzqbN9mFnVJyP3CnF5++rNfz9zoMQXd55r4GJotUpLy1Iyv71ELQSgdM6enH+/xi9KbmNs/4TyG8xw3U+BxH2XKtBXk73z8Zrdi7orn7YgfXP+ho1TI58psgNeEZVnlGCnjhjSQlepXZIPSD6FDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=i1yH4fpz; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709548341; bh=KIzJmkOsvRhcMZS0B9T7opj0yBL9GqIfatloVh3/Am4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=i1yH4fpzGroY/z8eVXA2TS5zjJOZX8uHwkLqd4QP2aDIrfVAMk6u+ox/P8ACmkInH p9+IVX5Wm0ndqsvmtCMLvkGSkcVaC2TqJqeSOKgVbHInYxJoMjkUVPHFFqze7Jh6kC CCKpV4p5MZ850HI40/VXeiGA/wnFkuAYD+l3hMLFqFvCKZz3xz8uTK9yFL92H1vUsc os61xfdUAHAb//65Ytdz4W5Q9uwPZnKgKtoH5doNvcY4yXW/Dph9xIgC3YQ4VQ0k/x eLA59fSLbnxrlTp/nEF/o9+F2Gd6gmgrrrPb1vOa1mOR0ZMlHREbwv376+3DHHcN70 WbqldLG0XfaFA== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 4BD6537813CB; Mon, 4 Mar 2024 10:32:20 +0000 (UTC) Message-ID: Date: Mon, 4 Mar 2024 11:32:19 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] mtd: spi-nor: core: correct type of i Content-Language: en-US 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 References: <20240304090103.818092-1-usama.anjum@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240304090103.818092-1-usama.anjum@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 04/03/24 10:01, Muhammad Usama Anjum ha scritto: > 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: AngeloGioacchino Del Regno