From patchwork Fri Jul 5 15:03:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13725259 X-Patchwork-Delegate: kuba@kernel.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 542FC17085B; Fri, 5 Jul 2024 15:03:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720191804; cv=none; b=p6Lx0fqaslSea+GFknC6eD0doxv46HyKneXXLAu1sNPayxyidmj9JPEM6PVqMIfynlnkBz/vp87fecU/Roh/fFAqUMi/Tj+4UseLZWTg935ZfJLo5Re1bJ09RSb/P2JiVIyfPdB21+ZtCBl/Mg+iktvRRT5TM17S8ehks6NGDcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720191804; c=relaxed/simple; bh=Ex1DFxzqtCXqvJ+a4DTzxQmabU1eUIweEZT/7M8pQ/I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=heDOlnh6UemBVf09LeyqtpILLgVu5+zVImYbpzKgnwYYAFfo8rSnqy9kXc11bqFEReHBdZQYyhSsg3BeOagrZe3s6HHo+LLb0b5yAh9970debEbpODSfm7hIqBCX/dfKCgHzrcVndWrKBtqr9KlMcyebe9Q4rBri3OaZZ+NZAyM= 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=Bw0njKoC; arc=none smtp.client-ip=217.70.183.196 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="Bw0njKoC" Received: by mail.gandi.net (Postfix) with ESMTPSA id 7C7BDE0003; Fri, 5 Jul 2024 15:03:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720191800; 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=UylGglBX1XOLCextmbCbiuNhWEiRQlnEHwkHESX5MAo=; b=Bw0njKoCddC3IktKiJLy5C9ubAxn4uYt4fAshgXLc7mSwQLH5mSa1Fdcd3EjuGyVAkceN4 Y4VvmWeDxploy3uplLnFsIZflNS1QCpjLnhn8iMODRPHd3UCMGdEZmKFelbU/uUYNVXOSo bfbUl4yBy+ieNvzaF2mWMrPyjDCamPScdtG2e/AaVHzfWSs5UA15LTxRcHiIDWWzjPKY5t rT6wxzMPzFLMjl80g63dV8cI1KwWfOEWBFQRqxvz1PsIdCn22FuCG7yd828ZKNgT+Bf56I DzDFcy0/G4W6i87rYN7d+XpSf56dycFQwIjng/HmhgLCEK6zXUrwrDHTZB591w== From: Kory Maincent Date: Fri, 05 Jul 2024 17:03:12 +0200 Subject: [PATCH net-next v16 11/14] 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: <20240705-feature_ptp_netnext-v16-11-5d7153914052@bootlin.com> References: <20240705-feature_ptp_netnext-v16-0-5d7153914052@bootlin.com> In-Reply-To: <20240705-feature_ptp_netnext-v16-0-5d7153914052@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 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. 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);