From patchwork Wed Oct 30 13:54:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13856577 X-Patchwork-Delegate: kuba@kernel.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 7F56C1F4730; Wed, 30 Oct 2024 13:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730296519; cv=none; b=KFnSbxVU6je+lwyeulefzVZ3pyGeFp9jKVRDb4IaBvDOhOVbMuRzSC6SgsP7FYj1XA4n/DRIrtP7u0ZaY3oc+il1THVXMxOjkIq/EJkpov8eOBgSSWMnQHfX+Q0L1wJ1YM4oDh1mnc47IPF2SlsjjBd1hXBItoZEeqC8fuO/INg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730296519; c=relaxed/simple; bh=VvGomd4CsgGBhIU7pyBpX/Z+sXtXTWPEK3ZJsnpKH28=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=asYHnQMMc2fZZHuGD6dN+mJr3hsoJMCjGJQLrxWYSta5NsnuWqiW2cSTFIk35THIaOT7wm6k0ti6GDgM3/rREvfk7qpONFgDo9haCzVRCb1g1sadVcLJQG8EYH4Lwh5EAVFgJH7sPFo72YJlvMI2vJblTszjHsZlhQtrH0NduCo= 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=HTgYZpgS; arc=none smtp.client-ip=217.70.183.197 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="HTgYZpgS" Received: by mail.gandi.net (Postfix) with ESMTPSA id 34C801C000D; Wed, 30 Oct 2024 13:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1730296514; 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=ZaSNYgBmbkGG1UyZcwoYGA9rHYudjY/FeaExeuN9m4g=; b=HTgYZpgS+JyYv7UAuRYMCJXsQIqwpncjfCa4XnGZx3xnPRuMNTvDyzZk+lZUEGfWcvaeoD MUPEC4+ZBRJj5UV71RdPAX9PMCrb+B06MtcXYZPHwtz/onhuBfeS9S/GGNFYN4m3GCWSzg XHStR7ONyP2dArcPtgqfzcgQYKqACigzg8b8+anPsds4EmkrbkCfvJZmrX8SrDjitKa3Hc NR3rDNJ9LvVoJ5d+pwKCv5+6rnMfIXXfH1oXhQHNT+LiMtj2zLRLKS+zXzRSJLN+MB2ypW T1/OkAb2vWlibshhC3pQVkJtnVCjU8qyIyit2gvcm83cW4kaqZqHSjKZFeFbdw== From: Kory Maincent Date: Wed, 30 Oct 2024 14:54:49 +0100 Subject: [PATCH net-next v19 07/10] net: ptp: Move ptp_clock_index() to builtin symbol Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241030-feature_ptp_netnext-v19-7-94f8aadc9d5c@bootlin.com> References: <20241030-feature_ptp_netnext-v19-0-94f8aadc9d5c@bootlin.com> In-Reply-To: <20241030-feature_ptp_netnext-v19-0-94f8aadc9d5c@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 , donald.hunter@gmail.com, danieller@nvidia.com, ecree.xilinx@gmail.com, Andrew Lunn Cc: Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu , Willem de Bruijn , Shannon Nelson , Alexandra Winter , Kory Maincent , Jacob Keller X-Mailer: b4 0.14.1 X-GND-Sasl: kory.maincent@bootlin.com X-Patchwork-Delegate: kuba@kernel.org Move ptp_clock_index() to builtin symbols to prepare for supporting get and set hardware timestamps from ethtool, which is builtin. Reviewed-by: Jacob Keller 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 f5fab1c14b47..f521b07da231 100644 --- a/drivers/ptp/ptp_clock_consumer.c +++ b/drivers/ptp/ptp_clock_consumer.c @@ -108,3 +108,9 @@ void remove_hwtstamp_provider(struct rcu_head *rcu_head) kfree(hwtstamp); } EXPORT_SYMBOL(remove_hwtstamp_provider); + +int ptp_clock_index(struct ptp_clock *ptp) +{ + return ptp->index; +} +EXPORT_SYMBOL(ptp_clock_index);