Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1350264rwb; Tue, 27 Sep 2022 11:45:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Z23sg44Q0F1lbnOk9nbQ4yI+ai0HlidbxQb6rmBNAZs2EBGUCUKiiQwkZOCJxbfXSHiCh X-Received: by 2002:a17:907:3f9f:b0:782:a14a:fdf9 with SMTP id hr31-20020a1709073f9f00b00782a14afdf9mr19168381ejc.49.1664304345861; Tue, 27 Sep 2022 11:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664304345; cv=none; d=google.com; s=arc-20160816; b=j0k4qT8pYAUFcIhjqK96pIOi6m9gZQN5AoIO/mq4BhxpGYjyFMjUqTp6k17g4v3HG7 Ho+vMLJxChCZHQGv+SoLztWNcpSvXgTjdF+Drrs8Go78trz9/2qqU65mNZxvdUwF9jIv HQDC1ZjpM+o/gu7EgX4uLfciaoipIj1tanslEqJm6gyhoyVLtXoiGHg8LCLu9JSET10D dHzO5tREcwa4LjckyXUWplgmgHdYXh+ygIh7SPut9CD/FEoQHB3xhZDcY796zkK4eT13 V1cHlvgBsni0vpTKHordn4ewByTM2Ln1n0uSJ7clGhAmOX0gH5MXxdTszsGS6nVgDfYP sytw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HOh+QWpBHhNaQL8YrP4gc0J7/nndxyNFDX0F2n4fYaM=; b=xHOyejnSMQ6PO8a+P4f/kxkrhYEl8cb2cV1qFZWqxikPE9Sja1Ea12+Au6pA0USRtZ 7d78w9IAgdA8PSUZmXStLqsXne3205WY77AOCZ0wUO2bzNgmd9K7Fz30O+6sRtUxBhLp 4fj196UJo3wrlF/airXpQ6ZnNLvAoqhSOylHB4QjVuNJHf4lEbHt2PbE6I6QWh23ZiTS qlfwaKhdQRZUK8FYC37lSGNlu+wyZIeFMtQ8ber4SXyMqHyNXb3Ca4euFEfyHxb0BSIu n3SW92tNnjEZwxingIXXgTQmcmP7f9ZlGiez7AxPEXR/6K+RtAfbowHhmKbIT5QyQQko HBUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEZK1tSZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a170906518d00b007813b1924ccsi1908947ejk.934.2022.09.27.11.45.19; Tue, 27 Sep 2022 11:45:45 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEZK1tSZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231312AbiI0Scu (ORCPT + 99 others); Tue, 27 Sep 2022 14:32:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiI0Scr (ORCPT ); Tue, 27 Sep 2022 14:32:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DE941B8C85; Tue, 27 Sep 2022 11:32:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 58469B81D16; Tue, 27 Sep 2022 18:32:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4379C433D6; Tue, 27 Sep 2022 18:32:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664303564; bh=lDAstUYH+b8Vttes5ZoyAJec6S7HjNPI+UMBYiUSXvE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nEZK1tSZPwg+xlxzmwdSbORnEn0N3jNryhA6/eQml7wXReAFrKwnxb5j1WvJ395Ue ranjvuz9Ddt1Rsi3pPhLiinrg3PRPWXvPdK6bOskODaO6+WmgNatpoeFUoI1gdWUFq ZzsjWI4jgd0Zy4x5FR9zt9FrinAEmJjKTX6UxyD1YvWIQ+4zPy7D+i98dILZkR4nxI smiDVlk6V05GhHE7one8Cm6bNqv060BD+S3MUhjVrd5VHTkotssFyUh4q2rsVBc9hj 6PvDvjwv/LtC4tFFsmk37axZTQqP01NZRMDSJtAk7FzfJHOxHgDqUxPonXHb5Wg4Y5 OIrlji3BCuqHw== Date: Tue, 27 Sep 2022 11:32:42 -0700 From: Jakub Kicinski To: Richard Cochran Cc: Bo Liu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ptp: Remove usage of the deprecated ida_simple_xxx API Message-ID: <20220927113242.0349e2a8@kernel.org> In-Reply-To: References: <20220926012744.3363-1-liubo03@inspur.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Tue, 27 Sep 2022 08:05:23 -0700 Richard Cochran wrote: > On Tue, Sep 27, 2022 at 08:01:28AM -0700, Richard Cochran wrote: > > On Sun, Sep 25, 2022 at 09:27:44PM -0400, Bo Liu wrote: > > > Use ida_alloc_xxx()/ida_free() instead of > > > ida_simple_get()/ida_simple_remove(). > > > The latter is deprecated and more verbose. > > > > I can't say that I am excited about this. It seems like a way to > > create a regression. I don't see any need to change. After all, > > there are many "deprecated" interfaces in use. > > /git/linux$ git grep ida_simple_get | wc -l > 119 > > ~/git/linux$ git grep ida_simple_remove | wc -l > 169 > > Please go take care of the other 100+ users of this API first, then > come bother me again. It's clearly marked as deprecated and the old API is literally a define to the new one: /* * 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) This transition is happening sooner or later. Do you have an objection here or just don't want to review this? I can double check the ASM is identical after applying...