From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BAF5C433E7 for ; Fri, 16 Oct 2020 02:48:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B92DD2074D for ; Fri, 16 Oct 2020 02:48:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="hc/ZN/h+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B92DD2074D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 582D2940057; Thu, 15 Oct 2020 22:48:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E462940034; Thu, 15 Oct 2020 22:48:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 310AD940057; Thu, 15 Oct 2020 22:48:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0144.hostedemail.com [216.40.44.144]) by kanga.kvack.org (Postfix) with ESMTP id F3E05940034 for ; Thu, 15 Oct 2020 22:48:15 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id A68681EE6 for ; Fri, 16 Oct 2020 02:48:15 +0000 (UTC) X-FDA: 77376254550.16.wave22_5d0744127219 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 8568D10238C73 for ; Fri, 16 Oct 2020 02:48:15 +0000 (UTC) X-HE-Tag: wave22_5d0744127219 X-Filterd-Recvd-Size: 2662 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Fri, 16 Oct 2020 02:48:15 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B4C4E2087D; Fri, 16 Oct 2020 02:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602816494; bh=o6h6sHTPzbBGqA+13JqNUYsrSuw57A0h9MTwY4ZFl7E=; h=Date:From:To:Subject:In-Reply-To:From; b=hc/ZN/h+/jf/+nJgfxUwJNgm/UF46QpabpUK6j53paK3+W55tedT3rMKL2w7A7aW+ WL4vXT9m4TETPArAZC/R8r99EWUn8tAOxmyFHMmOTBBKJ0tnssbr48iXwsm6ggnnmL X9iL6g0Pfj00fQeRcp+4w5rfy37/No4KQ4W6pbJs= Date: Thu, 15 Oct 2020 19:48:13 -0700 From: Andrew Morton To: akpm@linux-foundation.org, corbet@lwn.net, gregkh@linuxfoundation.org, linux-mm@kvack.org, mm-commits@vger.kernel.org, swboyd@chromium.org, torvalds@linux-foundation.org, trong@android.com, willy@infradead.org Subject: [patch 113/156] lib/idr.c: document that ida_simple_{get,remove}() are deprecated Message-ID: <20201016024813.YS2j9xrno%akpm@linux-foundation.org> In-Reply-To: <20201015192732.f448da14e9854c7cb7299956@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Stephen Boyd Subject: lib/idr.c: document that ida_simple_{get,remove}() are deprecated These two functions are deprecated. Users should call ida_alloc() or ida_free() respectively instead. Add documentation to this effect until the macro can be removed. Link: https://lkml.kernel.org/r/20200910055246.2297797-2-swboyd@chromium.org Signed-off-by: Stephen Boyd Reviewed-by: Tri Vo Cc: Greg KH Cc: Jonathan Corbet Cc: Matthew Wilcox Signed-off-by: Andrew Morton --- include/linux/idr.h | 4 ++++ 1 file changed, 4 insertions(+) --- a/include/linux/idr.h~idr-document-that-ida_simple_getremove-are-deprecated +++ a/include/linux/idr.h @@ -314,6 +314,10 @@ static inline void ida_init(struct 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) _