Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp519613lqb; Wed, 29 May 2024 02:53:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjMq0vAVpLUIN3x421LXiZsH0btug0QOf6Hdn24rTolV9xjRHQSZ7hl99rYsEd9V79BfWTmWj4C6chNHUh9kcE5lyS/f2aLOr3SIfvXA== X-Google-Smtp-Source: AGHT+IEnCqR2LAembEl17M7quyGnCZFoK956d7gAUewxgFAK7aFScESsipewM6ucoTTGrh1fjFPG X-Received: by 2002:a50:d694:0:b0:578:69be:6e7a with SMTP id 4fb4d7f45d1cf-57a03e260famr1572549a12.1.1716976410203; Wed, 29 May 2024 02:53:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716976410; cv=pass; d=google.com; s=arc-20160816; b=L4hwZru/SwAJW7ccgQ+p91USlaQ/ohPnXsOzU2LjdBS73l7FwVJBAaNOLRxqJlmoNz gl4/jgWFWzEhBlAA4pdmbfFrlP3Guuz3xnjGdCaiOlcI/gw/87FoZWN8y9HNR3XbANYj IbNO96ss1kMyAjIPd2zinZ1FOXP8TdnE5uj6a3RfQoMLnJ8O1Pcmw5PcMhrFu+mjhGyP 9SD3axr+i6zGUE2QW4l0Eaqy1RePcQONlWFC86j7tLSgCULiQdT10oUtCLCSetynR39x pxYf6Fo5rNJzfTSzbstT2jI2Lkcqh1OKpHKuLhKWwYmDWefL6d3wbGcERvI+Cr94A497 Y9xA== 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=MsT5fs5iRKjCtgmilXIPXja2OD+1jeQktSeway7Y/jE=; fh=vtlcgQ30nO0QjQR7y1Wfn7g9c11A+T6SWcSZ6WixcJI=; b=SG8rOSh2nM3I6FeVW2AMm4/7NxRdiMx3277N2e79hFxDKTpf3OejWy7Qxw3ug9BvBD MJ7GWLLZ1K8COwMJq+VCvdPDNvQW5j8FMz1FmERajdvgAMRjew8nsoXqKalv0pAb2zQf cLpZtUd/+Y7xo8RFDSS3Ji61Qw5WkpO6KqGpxXeUajfXmTC8qbfoD+kIPTiZzIK8SUqE N1Enl08TCVyDIWrj8pDgQMHI6gW79QVMTWUFHj30Ae2EHhMSwHHLKj1n+MozTPGXLtBO 4nNn9p/63H46B6XWEC6D8Gz+uZpV8slO3Mv43wziQ48hdE87XdOg6iBngHFYrY4HfupD 0cQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=esYfqlZ9; 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-193871-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193871-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a01c5da1asi826408a12.68.2024.05.29.02.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 02:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193871-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=esYfqlZ9; 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-193871-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193871-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6CF2A1F26CC8 for ; Wed, 29 May 2024 09:45:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3805180A9E; Wed, 29 May 2024 09:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="esYfqlZ9" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 0FB4F17F36A; Wed, 29 May 2024 09:41:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975716; cv=none; b=S8OTUyxjvnIpr3kLUlMv+Tt+8V3NDnFwKZoq9eDxO2YRNBw/N3gC38GvyZSzQytFfKuoQSGGX1QPUhHHkUL8xzjTRnfNDpqaOpOGBO+ksuhecNpSwWw9G8Cdp/YFdnQqvWSVBPwWBipDngohQWJwsAFwFJAW4upkplPSabWEA0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975716; c=relaxed/simple; bh=Qd+P85tOs7FCb+B4veIZb3r4G64PJE3s9w84Kf5JVSU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tUC8aHBvrZKUzWqWBNwvHyt1CLYxmMxfITiqFQHZvHdFD5WMJc+TCo8fdhoxdfdP8Xp1VdOHr3FnVDgCETZAP+Q/42H8CSoy5jTizu5oHBCIMkEULDiZh062CiczewZHfoGLZKOWo0Hsv57hOdXL4VYISzBhn+0cdWmmKJqYaoE= 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=esYfqlZ9; arc=none smtp.client-ip=217.70.183.195 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 3BFEE60017; Wed, 29 May 2024 09:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716975712; 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=MsT5fs5iRKjCtgmilXIPXja2OD+1jeQktSeway7Y/jE=; b=esYfqlZ9az0d8wdqyHqzr56hLXzK3TASKcyJDcdt2sV+C//BPLrbATFDF6s5lCvqC4xG3d eUugpU4DM9DrhksIz/LFQmiv1aiv1zh5yvdpbeKpvPzaVQin8CmMZY/d97ckGhVAPK8Toq mNBDHJ1uJy6RJN0D98dH8mNNtt81r4w8tVb0EzHhsTSTwTh/bPGEqXhAdYxpgnEJPqPtOG FV9EzhH0dSIVrnbZGW6txRD7FhuXSQGz3XcfvFF/oe3MN1AYQ7spjNn7EPd2DFTphsZB8W I4lduKKm8nFDEVcAxJGcoLmUVb8n5qSQGQ1yH3uBB5x/OHEnlpGTjwqqFDg5pg== From: Kory Maincent Date: Wed, 29 May 2024 11:39:44 +0200 Subject: [PATCH net-next v13 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: <20240529-feature_ptp_netnext-v13-12-6eda4d40fa4f@bootlin.com> References: <20240529-feature_ptp_netnext-v13-0-6eda4d40fa4f@bootlin.com> In-Reply-To: <20240529-feature_ptp_netnext-v13-0-6eda4d40fa4f@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 759dd6f63405..2322fa65075e 100644 --- a/drivers/ptp/ptp_clock_consumer.c +++ b/drivers/ptp/ptp_clock_consumer.c @@ -97,3 +97,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