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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 A6948C433E2 for ; Thu, 10 Sep 2020 05:55:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4CD412080A for ; Thu, 10 Sep 2020 05:55:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="MUKmoyzy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726746AbgIJFzc (ORCPT ); Thu, 10 Sep 2020 01:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727770AbgIJFwt (ORCPT ); Thu, 10 Sep 2020 01:52:49 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27D38C061798 for ; Wed, 9 Sep 2020 22:52:49 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id k15so3975096pfc.12 for ; Wed, 09 Sep 2020 22:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FsIW/ho8L4Ojj2IDAYo7OECYT4O745qVEpU9yUHFZV4=; b=MUKmoyzyhN/Cs3Rrq1Zdyc+ZXljXzU17JtJoK7tt7EhY2zjmydEvAEdoUilWiG4OIP ZvEfG3JqLV/ESzNS3UVvYWyOg4U+F4dKJ8vgT5ZN/kOU3BWNgq+/1talwqrbFy+8itD9 RVVrFjyMSVJxfOXgr2a7bRO911UbgiSzstJMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FsIW/ho8L4Ojj2IDAYo7OECYT4O745qVEpU9yUHFZV4=; b=NE8la00cHDI0FQO70Vdsnv15+zT1yFwaaoEmaAtRwRQN+7q0bZn3nnpLrhnvAnIjwm 5YmasNpCE/QfMIVZ8iQ/MqGy5Jt+1ZLYTDLiqaGSAV6CKymRp+688fwTS1dTK/otBVTf uBFHdxWcnlw2ntaFWUQnM4bt0iP4WMrfLIlvin2hONvQfNogZ8Zz+9hZLukOE6yLsXTg XVm7UGNDmWprBI73DoVy3FpOfwtYeaoiEwnGSyZyPJHiJHT1fGhqWamvV57437XthZBz 6SBQ3QSSRZ4Xh5DXCuBSybvaDy3yZywGK91DJWbjbiJkDBBINLPG1YY/3oQBQlhaSQJE 9R+Q== X-Gm-Message-State: AOAM5326nitqQgP67nRoxFTETLqUHgwWUeARww6Ufc7J9GWgDFcSZZgY LJfL6w6HgK3dTvQgPis0kFlFnbziKCGuLQ== X-Google-Smtp-Source: ABdhPJxD/X0Fha0s2xRDikF0PErw7bhDDnyMalvLpV36hPm1bPOvlo5pCV5aqb5HwYvlvmJcInSruQ== X-Received: by 2002:aa7:8812:0:b029:13c:1611:6537 with SMTP id c18-20020aa788120000b029013c16116537mr3883052pfo.9.1599717168704; Wed, 09 Sep 2020 22:52:48 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id j11sm3751317pgh.8.2020.09.09.22.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 22:52:48 -0700 (PDT) From: Stephen Boyd To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Greg KH , Tri Vo , Jonathan Corbet , linux-doc@vger.kernel.org, Matthew Wilcox Subject: [PATCH v3 2/2] idr: Document that ida_simple_{get,remove}() are deprecated Date: Wed, 9 Sep 2020 22:52:46 -0700 Message-Id: <20200910055246.2297797-2-swboyd@chromium.org> X-Mailer: git-send-email 2.28.0.526.ge36021eeef-goog In-Reply-To: <20200910055246.2297797-1-swboyd@chromium.org> References: <20200910055246.2297797-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: Greg KH Reviewed-by: Tri Vo Cc: Jonathan Corbet Cc: linux-doc@vger.kernel.org Cc: Matthew Wilcox Signed-off-by: Stephen Boyd --- include/linux/idr.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/idr.h b/include/linux/idr.h index b235ed987021..a0dce14090a9 100644 --- a/include/linux/idr.h +++ b/include/linux/idr.h @@ -314,6 +314,10 @@ 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) -- Sent by a computer, using git, on the internet