Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp524455lqp; Wed, 12 Jun 2024 08:28:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyq/ZHtZ4RBsyAVQnBzCpnW3bNnVGlQsHzI7Gcnk03CVtR4yxDWcBcE+WyarmWiSSOeXbyH6mCa7/BU77peR7nKQjrHxo0RfvW+LAwsA== X-Google-Smtp-Source: AGHT+IEjkKUU+UiOSwuOjSY69kDfNFV4b3XIvi6ipP7OhjW8QMmUn/5/ofEZUjKMPkq4BfFedQg7 X-Received: by 2002:a17:902:da83:b0:1f8:3f13:1972 with SMTP id d9443c01a7336-1f83f131debmr16837175ad.28.1718206124219; Wed, 12 Jun 2024 08:28:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718206124; cv=pass; d=google.com; s=arc-20160816; b=Hj5pVwkW/saW8iBm8zsipTTQM39/YWddS0NX2J9DxKpsm++TG41eMWC42NaJ/nL2n4 WWx4asquzX8/azD8nXirCzbOKOGKH5lZMNM+uGEpM5Q5Eod4geMb9D6QGyqg5VRnK5s4 xeSs82W2GR/ODxz5sUMTQvbO9TTnME6w4obnS5DOT31oEfCs9d1j2Y9OMu0kDVu6tFrs 5qXRgt4t6yOVWRXPz7YdwGVvmZnnltSzlgFb6lgxCX9Cb9hlywB6s0SkZyLxT/afhIQn u3RshCWVweVB+TYQOhliCAO2KEA2pOCui6eaN8r97bMTAw3x7k3LMrXXOcrkhHL7kGs7 tz3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=colQEtyFPW1f1bHjDkZLgN48b4d5EBtC727z2oaXiVM=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=lw/v7cJmlYRt0e5CgHuweIe87H6IDloHcZurfOW1FQbrDn1veRiVhlE3uSa5UsFZmK M0KwpJzDUW17q5o0Qb9B4hYY340zLYQhlLQg+lWrLL6XQG9HnmjYwQjMYdoKUbQA1Zyt hn8BbQnxo0ors3pciLdk860gryMeu2Art3f76C8+/n4JnAPnmD4nVS6uCErAaKxs73Oh OlW958z8orGEdl3PtQhaKT7Py5KWuelBAr5pXzNLYjacUN6BmzE2fVveAT/c2bAaIhdG wFME8hXFRP/s783abZ7se+Li2ECy4RSgGtfej5g9ONgczIZDxLtHJkHhfIWIFut4CQ62 LuSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BdKnpx8m; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-211751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7d5918si118250025ad.254.2024.06.12.08.28.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BdKnpx8m; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-211751-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 39EFAB271AC for ; Wed, 12 Jun 2024 15:08:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2BF5183098; Wed, 12 Jun 2024 15:05:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BdKnpx8m" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCE7E181D07; Wed, 12 Jun 2024 15:05:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204712; cv=none; b=YZvZSvSqAQ6znNqraLxufXHCv2/L9jvLttQj2SXGNnMcugi+nmXzMYb93963o24WgsXyIOk4KM1+trGHGtDvJdSAYoTGlofz/o4psN8hvfoch0jR+5w9ab6pPuWgt0+LlaV1cm/3h9+2Kc3hsV3JvCIIPIABeTAUTjD/ZFWm4eU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204712; c=relaxed/simple; bh=aeorz7ikHOyI3uGMrYyKmFVs7/hL9oxlIYMCbENPZPo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RQaU5AO/XAiCsd7CXrWe7iAeW38R7gojltYiVMozR+xjKWd9nAav9keOB5ogK3UZyftwfVrXsfRNpBDQE5zoQMyLRVQjJtab12Uhn+0qqr+xBNY9+oR0Io4bsPFwf77SreyIvoeNknLn/Sr1NSFk8EkSYXgcwa+nO8Su5KYj5JE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=BdKnpx8m; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 463304000E; Wed, 12 Jun 2024 15:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718204709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=colQEtyFPW1f1bHjDkZLgN48b4d5EBtC727z2oaXiVM=; b=BdKnpx8m3SLwWkg2PKV0TnOcxHBuZV9SUVs1GMEVC3wjFOBRx5rWn+yBa/z1IrvoLAoD83 yD1C6Tm2PK1926p/0fcPmwqUR9PXDAc4AmaHQ/9h756QTZhZH5sFSOz4QKMWSw5yNVJTPi 2A4vV0iIrwM11pv83SWvaJIbRaV8SKK8MmDGaZhbHP33C43wsLmak6RqY1oWKZi3LXEJkm +RePuwEahMRei6SEsS7v/2N270ruVUD6WnXybZwVZIAoxDZ3fIL8+X1+7N8qMAq1y1TaDG an/KCYdeO20bxXglQgSVj3oCu6iaCUoMsyWduLWOj/58VkkjYQC0edPVZzJ52A== From: Kory Maincent Date: Wed, 12 Jun 2024 17:04:12 +0200 Subject: [PATCH net-next v15 12/14] net: ptp: Move ptp_clock_index() to builtin symbol Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240612-feature_ptp_netnext-v15-12-b2a086257b63@bootlin.com> References: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@bootlin.com> In-Reply-To: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@bootlin.com> To: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Radu Pirea , Jay Vosburgh , Andy Gospodarek , Nicolas Ferre , Claudiu Beznea , Willem de Bruijn , Jonathan Corbet , Horatiu Vultur , UNGLinuxDriver@microchip.com, Simon Horman , Vladimir Oltean Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu , Kory Maincent X-Mailer: b4 0.13.0 X-GND-Sasl: kory.maincent@bootlin.com Move ptp_clock_index() to builtin symbols to prepare for supporting get and set hardware timestamps from ethtool, which is builtin. Signed-off-by: Kory Maincent --- Change in v13: - New patch --- drivers/ptp/ptp_clock.c | 6 ------ drivers/ptp/ptp_clock_consumer.c | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index 593b5c906314..fc4b266abe1d 100644 --- a/drivers/ptp/ptp_clock.c +++ b/drivers/ptp/ptp_clock.c @@ -460,12 +460,6 @@ void ptp_clock_event(struct ptp_clock *ptp, struct ptp_clock_event *event) } EXPORT_SYMBOL(ptp_clock_event); -int ptp_clock_index(struct ptp_clock *ptp) -{ - return ptp->index; -} -EXPORT_SYMBOL(ptp_clock_index); - int ptp_find_pin(struct ptp_clock *ptp, enum ptp_pin_function func, unsigned int chan) { diff --git a/drivers/ptp/ptp_clock_consumer.c b/drivers/ptp/ptp_clock_consumer.c index 58b0c8948fc8..69d2921e45a1 100644 --- a/drivers/ptp/ptp_clock_consumer.c +++ b/drivers/ptp/ptp_clock_consumer.c @@ -98,3 +98,9 @@ void ptp_clock_put(struct device *dev, struct ptp_clock *ptp) put_device(&ptp->dev); module_put(ptp->info->owner); } + +int ptp_clock_index(struct ptp_clock *ptp) +{ + return ptp->index; +} +EXPORT_SYMBOL(ptp_clock_index); -- 2.34.1