Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3548110pxp; Wed, 23 Mar 2022 00:22:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykpNNc/DSvdIYyjDwNggJpy63czTKizJSdQuub/a4pv/s9K4OSHWzoeB9bvUNtDxN6UTCi X-Received: by 2002:a17:90a:de83:b0:1c7:3d7b:7a5d with SMTP id n3-20020a17090ade8300b001c73d7b7a5dmr9753731pjv.242.1648020160283; Wed, 23 Mar 2022 00:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648020160; cv=none; d=google.com; s=arc-20160816; b=PjfZ6gpW0uVYi4GDJKLts7G3h4Eog3mG3k2WBqtEB6dYjkZrweq1vt3MDPwdNxPLpC d+shch5rAkwonD3O/tfeeFz/BbIKiyhfDvaLWcdyENVSR/dVMOPVtIrPwNR8aLUOsYM9 tZN6SG0LZ4LIiducZEWEK7Z62G0pWEtFXkXOdFRHm98FdBZc4oT0IpPebLgsPN4jCE0Q ksBK/v52zNRSvhrtM+oQwGfEiKsLkYNc6hBQXduQPKeijjC8FQPAZmQAm5cT3YWA4vwR ZueyRaG39K5IlL2TLntj9yUPWKEk3B2MaA7aWhJyUjUQiC2G8CviyEf0lDVamLxtjGNG hycA== 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:date:subject:cc:to:from; bh=prZ9yHSUBorBTHVepdkyqqBNAQHrr7iOvka/HH5X6aw=; b=TeTyKUC1oFNKeff0OZX+4qoLV3WOgHic8k5PCTgNsK+fFo4Pher3oJiPLxebF5FPRJ ifFUUVmPb0u1ZJbdQ8yLd8c9RXz385HCd4KgYJUJB24CikjNzrc9M4pIlDnME+k23Y7u ZxXOC5kWArSO8KoM9NGg6FEDQ0BhnzvQc5PdoSU76ZUqO4C5/sD/uwv5H0y6GJAbG5i0 +SRwvGczGCecVZlO6aDLKGfRfAKpQ9ioBnSzEKuHAM28Ko7LoQjvehz1J2Zp9Q2rFynv PaNPfKuMTFvvq+qiP3t0vNciX+Qgwuzh/jZ0ynuMgBXqtpOWV/jkk6LSggxqbZvajhcM fn7A== 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 k22-20020a170902761600b00153b2d1663bsi15361316pll.579.2022.03.23.00.22.27; Wed, 23 Mar 2022 00:22:40 -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 S237818AbiCVWYn (ORCPT + 99 others); Tue, 22 Mar 2022 18:24:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237814AbiCVWYl (ORCPT ); Tue, 22 Mar 2022 18:24:41 -0400 X-Greylist: delayed 599 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 22 Mar 2022 15:23:12 PDT Received: from 5.mo581.mail-out.ovh.net (5.mo581.mail-out.ovh.net [178.32.120.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A6BAE76 for ; Tue, 22 Mar 2022 15:23:10 -0700 (PDT) Received: from player794.ha.ovh.net (unknown [10.110.103.2]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 8BF2423A75 for ; Tue, 22 Mar 2022 22:06:30 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player794.ha.ovh.net (Postfix) with ESMTPSA id E7DF9256E9672; Tue, 22 Mar 2022 22:06:24 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-103G005581338c0-c49d-48a1-bf29-e376bff1df54, 39C76792797FC4B206737A387439D6B5F87E3063) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Matthew Wilcox , Srinivas Kandagatla Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] idr: Remove unused ida_simple_{get,remove} Date: Tue, 22 Mar 2022 23:06:02 +0100 Message-Id: <20220322220602.985011-1-steve@sk2.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 5216857219424093830 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudeghedgudehhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeelgedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,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 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 -- 2.30.2