Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp836392lqp; Sun, 14 Apr 2024 01:35:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX40hk0CLNL8417awtRvQuSL7ID3LJVYwkkPU8R0Nt35m0Ix+l3RCoFc683RgHaVTOlePpixZNXnOhjUyJXIaGj6N/JdOoFpaADBPpuqQ== X-Google-Smtp-Source: AGHT+IEhZVZE/2Anj+7EJRiw94rcq8hcyo8EhA5xQCMF3QO43VQ+ijLT53nysoTPS6VV7fqqWJoI X-Received: by 2002:a05:6e02:1d98:b0:36a:2d86:90d7 with SMTP id h24-20020a056e021d9800b0036a2d8690d7mr9782031ila.5.1713083753212; Sun, 14 Apr 2024 01:35:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713083753; cv=pass; d=google.com; s=arc-20160816; b=jw5yGQMIh1el2l+mey8bYirCoNDMxMJ987Ys3/XqKABrpSjmJlsAFc4nPponiD/YoU WOeewY5WZDPS9uHKn0hjM0pTbRO/CKTBPNNI21Lpg0+BE+Rg7X6bFjfEs+SpbGg4LN1U ExRiZl3lMvIQ5ZwanYRahZSSJvzt3phan7ZewFSHiwMki99A3fzXwYr683DgGEgF5wYw aKDT/wCqAvUSbdCEN97V7aXIWL6CbcvqilJEIyPZLrrbzo+eMyomj1exsLl+hMEfO0q2 jscXYVXAiGxiB3ECuFeIHwh3OnDj//1+KBAXsDovWZ9tQyCQU+HKG2FrwZocTV3niWKb PrTg== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=E/95b58pRdlETX2FBhKOQ8sHn6Id8wFl4e2YyFmV+PQ=; fh=O4TFAq3cK09iXR+7r703jnG9NskaRM1mlWNtaXZhHq0=; b=UoL7SMK4EYAKYiqAeJ2YngJ/nj06ulJw+12tECV3kEg0N95cLCJoP3dzPnT9zWqmML /y1w63FxlmSHUbpdiitFp3OAJJqQS+0YtGpgPrzp255E9YqaiH0/Oc9ezBm2PnUxUW3+ ajp7bMrTzZR2GxaikA5Yk5wDKTTVN/6nDJ+6URGZ4II7YzekcdixfTauBIdpxnGE2HC0 8C2JMViCbLVBLx7UPHhOrCl778/D/CJOIKpsPyNDKp2AoNsAcRqU32cD5VrRAAch3FF4 pQ764uBUfhMfG44hbCSAxqUdwAhU3MWOIsTs4W4yxpjbXZD3BPoQoaJvETpqhGTw63Ki nxsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=t26R2MBY; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-144052-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d15-20020a170902cecf00b001e29de896ecsi6163518plg.147.2024.04.14.01.35.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 01:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144052-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=@wanadoo.fr header.s=t20230301 header.b=t26R2MBY; arc=pass (i=1 spf=pass spfdomain=wanadoo.fr dkim=pass dkdomain=wanadoo.fr dmarc=pass fromdomain=wanadoo.fr); spf=pass (google.com: domain of linux-kernel+bounces-144052-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=wanadoo.fr 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 D4775281E0F for ; Sun, 14 Apr 2024 08:35:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D1EE23749; Sun, 14 Apr 2024 08:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="t26R2MBY" Received: from smtp.smtpout.orange.fr (smtp-13.smtpout.orange.fr [80.12.242.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC7A31AAA5; Sun, 14 Apr 2024 08:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713083726; cv=none; b=G/fvm1rQivUkM2IVQYvfPCyUpnOYczFOxbVLyUfFlTrMlVxSBmLMWv38AaQDVihpYgCjAQtRnB8CxXw/ziiNe4P7zfsRGlV4MWuzr0Juo41UmmYca4IcjUEbWWy75AeUzLfmvcnoDvrqm9rSXrqHIgOCwtLZ8MudVOYTnpE+U5A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713083726; c=relaxed/simple; bh=g9g7W9dRjFnnmcIhBA8COuq//kRWVgC968TWF7npr3A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iZsgQfV/a3CMXBFVfExyxxxj9wBLaCDeyp0XhF5Q2I8yWC2B4I3d6eMTZqfYA0Jv1sTAFIBRtidpeSKWRoGfcrwRARg9nBNUQkMgqhtqRHSLnw0ckUtt8JsDHzIkwW8waMxycRpA1N5bHduZtrIZl8Qxs911Mei39CY8aE0HoZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=t26R2MBY; arc=none smtp.client-ip=80.12.242.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from [192.168.1.18] ([86.243.17.157]) by smtp.orange.fr with ESMTPA id vvBdrWaH5A2vSvvBdrpztt; Sun, 14 Apr 2024 10:26:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1713083167; bh=E/95b58pRdlETX2FBhKOQ8sHn6Id8wFl4e2YyFmV+PQ=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=t26R2MBYEryhnb3fr0GVe0bUrJSy66cl3pnhuzUjxJEHnCzJLilAmM2tmOQOLpU2r TB+MGsHq8MOHayvTnsqMJ7iioHNDMtW+/zRVjT4WsBp9Dka4Ej/CA3W3NfCTuZzkqs 1a8dMOXIxnq9rL2PMHeJ0t8ImzTNivavt/3feGOIb6OcjG+NafjZkjM9LgG8BlqRvC /lKaH6iDFG83QiddAQatJ9/Dr3ZN4lrRnybefJcn2k4vSvOFaP+4KEhgNO/EiPnVA5 A9vLR60pr7GsnLzK4psbK2GKL5jgkh0/AwH+POJtjbKVdQGhBYS0nQPGTBUH9nTE3O da8rtH49+TejA== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 14 Apr 2024 10:26:07 +0200 X-ME-IP: 86.243.17.157 Message-ID: <93a3a465-01b1-4ca6-9b77-55d1024ae88a@wanadoo.fr> Date: Sun, 14 Apr 2024 10:26:05 +0200 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] vhost-vdpa: Remove usage of the deprecated ida_simple_xx() API To: Simon Horman 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 References: <20240116145727.GT392144@kernel.org> Content-Language: en-MW From: Christophe JAILLET In-Reply-To: <20240116145727.GT392144@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 16/01/2024 à 15:57, Simon Horman a écrit : > 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 > > > Hi, polite reminder ;-) CJ