Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp494938rdb; Tue, 16 Jan 2024 06:57:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/bcLLuCeiJ9KO5caWT1+/0EcTfURHDaS2Fb1b1ZifA3YObEIBi35avbrldmY43NgE/Ukt X-Received: by 2002:a05:6359:6b85:b0:175:c51c:c69b with SMTP id ta5-20020a0563596b8500b00175c51cc69bmr4805697rwb.8.1705417071720; Tue, 16 Jan 2024 06:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705417071; cv=none; d=google.com; s=arc-20160816; b=EQKCBKEmaE0v9uR/G0jEmt9mNgdSXsLXo1nXD1+cFGbPmCrE5w5VAuw2XQ639T8n2G bxjE73uHIeQo4O6baMUGXQrTcsI/QRoGNBjk2vDeKjTPJ0QMhtgbkHXkBFtkjINTZQPV JmppWns062oD79ByXfjqR3mjqzOWOL0jUZckcWBvedklLcRa2/w0Ja3cYruC8wMyphPc KElrkHlH8aEltY0pvrsO//FuK0+3a/A653gmdpAxqOD76tVAuldtDZvEZa767bQK7v8y RDrbFM/CmMgQNxnmEgN81oC9qtbiHDz+WVIgi2wJjQik0dyRhYuRki8bVRk2Rj3SU+fp /oJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BF1tnwMA+F1pZzZLw+Wb4EGnoXy1rmd+/Hj9WCPtQvE=; fh=f98QKdgvrounR/mq4od/GxNey0gSCQtNpSqBNgUNgpk=; b=xaI3kPeN8v+O4X1EuUUqTBYMonCb/VyA+1XO8aBaBYLWIifci3IHadwSXOlJVM6QDi ShHPbR1iL+SmCD8hgxFcWv3Bk8zou05X8mjaTVieh2XV6k6ZFbf6tpxN1KaKJ4KpHe4U PXYWp+EwMnyzrJdAPVuRR7eWhY8uRx2p7UuAKNNk2Dg62syBHqCXo07vZqy6ec94inEO EFE01KwQF5fJm53UpZSUpxdgjDDyBKBDJ1K5ap2darpgG/WZ3JNL6TzLm1cEJZCwAMko lTlfV66eBwN/wO8M4nKRbbmwQIgLLCskDb8UEeT0ZPvlmynXYwZ5tCXj6KTHy/j9TJJZ APPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mbnDxN89; spf=pass (google.com: domain of linux-kernel+bounces-27484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27484-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l131-20020a633e89000000b005cd8dc9694dsi11555771pga.178.2024.01.16.06.57.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 06:57:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mbnDxN89; spf=pass (google.com: domain of linux-kernel+bounces-27484-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27484-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 5C5D3286022 for ; Tue, 16 Jan 2024 14:57:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D247F1BF4E; Tue, 16 Jan 2024 14:57:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mbnDxN89" 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 EE0B31BF2D; Tue, 16 Jan 2024 14:57:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BE64C433C7; Tue, 16 Jan 2024 14:57:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705417052; bh=IDiQ8RIHrZHljn3Kz8/zVIVVFgI/X5qySiqO/mihRjc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mbnDxN89NnCKQf3N0/D0rX5XdcrPa4BtvSdaX+9/WXDUz6pSK2UUUIqVsaBVw/RAl d2ryEtDo1F+Cjd/LTfUHsgIJhwBYm2/cpvyqyQlJqsOXMpDu5UacXvqOyX5dX3x5tR ONsoIzei1KU+nW829AfT5Ba+1S3YjCZRgrVCdu+GT5DSWy2chjTRwux4XKLCucm7EI f18VfUqmq8Ja36FjBeVNwm30PUp9sgEvW+/zokcEkMfB9aHFjZX+Gp75Qpj+wubPbf SHkBEjXv3k0RJHGP9oG7B1rh1HXPxM6rullISIiqYSlw16YIdbtmgQ0ghDmANDFZVJ hn9QrUAOzEEsA== Date: Tue, 16 Jan 2024 14:57:27 +0000 From: Simon Horman To: Christophe JAILLET Cc: "Michael S. Tsirkin" , Jason Wang , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [PATCH] vhost-vdpa: Remove usage of the deprecated ida_simple_xx() API Message-ID: <20240116145727.GT392144@kernel.org> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Jan 15, 2024 at 09:35:50PM +0100, Christophe JAILLET wrote: > ida_alloc() and ida_free() should be preferred to the deprecated > ida_simple_get() and ida_simple_remove(). > > Note that the upper limit of ida_simple_get() is exclusive, buInputt the one of > ida_alloc_max() is inclusive. So a -1 has been added when needed. > > Signed-off-by: Christophe JAILLET Reviewed-by: Simon Horman