Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1150794pxb; Thu, 24 Mar 2022 13:50:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqyzZMi2nobRBxynkydnxf7Ema1VJnDYbqQ6wA6nlhmJub1iARdKO+q0oiDF11zG6BXNRk X-Received: by 2002:a17:902:8d8f:b0:153:6546:2530 with SMTP id v15-20020a1709028d8f00b0015365462530mr7885570plo.81.1648155036097; Thu, 24 Mar 2022 13:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648155036; cv=none; d=google.com; s=arc-20160816; b=a0bj8Ni3KkKq6Jcx1GSx04MrIx4AM2+oicKdxIg0zQhB6Oe4Ub/3c7aegH4f1x01HJ RkJizYa+oZ3U2kngyA/ogB5+4tV2FpxPyH6EPrNcqlaGnhUkTUYqaYU3+9PW/Z6dj4ye oJpDpuIgwvm5Kw9HTKspfrSKtsb7MVW+df5JpqQXaI/Cxe26PQ2rpvX+EZf0+UPL+0Ku d7jzrbIHkDa0DHqoU/xF8b8oq6zMpcX8rjGkmn8vbkdPmwBwAvvn3uZby6MNGpKWrV+y ULDoUMqX8vsxtlIJJPj5m0lEgtMSBXJ7W14T5P0+QLXJXgPEs1VMRt1Wy+u3neYONxd5 EhqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date; bh=xNnSPm9sW7+TfbJAQpkZpx9Ys2F6ue7JrB6GS/AsHCY=; b=j4pmUgvOJiEAsgAJ7cEdyfODsU5l3g6WiYtgnfLokjkIDPosVLP6dRybgILeCteuat ie7bqojcYVUaQPWKeKPQjjDcO4nfLSJyb89AliQHUkCuv/N5Drd7yv5xYPHP3wGAKEa6 7x73SbUAFg+g7aBpNoAwTnnG0tsWZgNavQZZ2XqsvqNT7XMGXrJm78YCxred5IUQag1l GqFuiEqyLPdOvh6fzmZ5oggc1Ystx7bv5ypAyckjcnm/w6Ga3Yf4/n+c8qnRoU6NMg1v 5a9iI6aYI60AxxzbzEhoieHe/ak3jRhyAN6oam3qT0yLM5l9aVB0yxCiDIoFvy+e8tdv xwSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a655609000000b003816043ef67si420378pgs.348.2022.03.24.13.50.22; Thu, 24 Mar 2022 13:50:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232515AbiCWFTk convert rfc822-to-8bit (ORCPT + 99 others); Wed, 23 Mar 2022 01:19:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiCWFTi (ORCPT ); Wed, 23 Mar 2022 01:19:38 -0400 X-Greylist: delayed 499 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 22 Mar 2022 22:18:08 PDT Received: from 6.mo560.mail-out.ovh.net (6.mo560.mail-out.ovh.net [87.98.165.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B2D435262 for ; Tue, 22 Mar 2022 22:18:08 -0700 (PDT) Received: from player694.ha.ovh.net (unknown [10.108.16.135]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id E55BC23AED for ; Wed, 23 Mar 2022 05:09:46 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player694.ha.ovh.net (Postfix) with ESMTPSA id 27E4B28977B6A; Wed, 23 Mar 2022 05:09:41 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G0030a29b9fe-1317-4aa6-b294-7148a9ed8fa2, 404CC6C5AE1CA2DD881B97E5F464CB0C121347F9) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 Date: Wed, 23 Mar 2022 06:09:39 +0100 From: Stephen Kitt To: Matthew Wilcox , Srinivas Kandagatla CC: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] idr: Remove unused ida_simple_{get,remove} User-Agent: K-9 Mail for Android In-Reply-To: <20220322220602.985011-1-steve@sk2.org> References: <20220322220602.985011-1-steve@sk2.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Ovh-Tracer-Id: 12365195729709270662 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudegiedgjeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffufggjfhfkgggtgfesthhqmhdttderjeenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepvdeitedvheelgeefieefieevudekveetheeuleekueeuvdehtddtheekheejtdeunecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrieelgedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22 March 2022 23:06:02 CET, Stephen Kitt wrote: >These are no longer used anywhere, remove them; update the >nvmem-prodiver.h to refer to ida_alloc() which is what is used now >(see drivers/nvmem/core.c). > >Signed-off-by: Stephen Kitt >--- > include/linux/idr.h | 8 -------- > include/linux/nvmem-provider.h | 2 +- > 2 files changed, 1 insertion(+), 9 deletions(-) > >diff --git a/include/linux/idr.h b/include/linux/idr.h >index a0dce14090a9..273b2158a428 100644 >--- a/include/linux/idr.h >+++ b/include/linux/idr.h >@@ -314,14 +314,6 @@ static inline void ida_init(struct ida *ida) > xa_init_flags(&ida->xa, IDA_INIT_FLAGS); > } > >-/* >- * ida_simple_get() and ida_simple_remove() are deprecated. Use >- * ida_alloc() and ida_free() instead respectively. >- */ >-#define ida_simple_get(ida, start, end, gfp) \ >- ida_alloc_range(ida, start, (end) - 1, gfp) >-#define ida_simple_remove(ida, id) ida_free(ida, id) >- > static inline bool ida_is_empty(const struct ida *ida) > { > return xa_empty(&ida->xa); >diff --git a/include/linux/nvmem-provider.h b/include/linux/nvmem-provider.h >index c9a3ac9efeaa..e957cdc56619 100644 >--- a/include/linux/nvmem-provider.h >+++ b/include/linux/nvmem-provider.h >@@ -75,7 +75,7 @@ struct nvmem_keepout { > * > * Note: A default "nvmem" name will be assigned to the device if > * no name is specified in its configuration. In such case "" is >- * generated with ida_simple_get() and provided id field is ignored. >+ * generated with ida_alloc() and provided id field is ignored. > * > * Note: Specifying name and setting id to -1 implies a unique device > * whose name is provided as-is (kept unaltered). > >base-commit: 5191290407668028179f2544a11ae9b57f0bcf07 Apologies for the waste of time, these are far from unused. I'm not sure why my searches didn't find anything yesterday... Regards, Stephen