Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp2376801rbb; Tue, 4 Jun 2024 03:43:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFGs3wh+4W2kTIlaO7WAANZRWASt9iwwrUy3slrqWzZi2sn+wofJUn3ovkKvbML5HBO3YMZQQMdGSAFG8jdesUH+Nmp98KL/UHV4JZJQ== X-Google-Smtp-Source: AGHT+IFi9Zu9saJ2GWRX7vFIDL1R65PbgpEzpY6AcZo7Y81dD3LzKCjvVsoX89+9rBcsoT1ff6KP X-Received: by 2002:a50:d494:0:b0:578:5eab:3f31 with SMTP id 4fb4d7f45d1cf-57a365cae19mr9165187a12.38.1717497836727; Tue, 04 Jun 2024 03:43:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717497836; cv=pass; d=google.com; s=arc-20160816; b=PXxESIxAWmY13Y34qvqlpJFnTQqd7EAvAeSeIYecaFlsBv8kdGyLReSKE4Q7ywfjCl G/s52ZClw6J7MhA6vFu4005NziNAGKh4AInHdXZENr6lgNPIRT0cRBBN0037kQPWadAX OLCRzxM8OuI1tiZ9oSk09fbPwNQhfyyqXidS1LrQEVSYRWP/vLIcG5BE2JpiUWUB91D4 ySMACoZOrf0hfa1wnymOGjoclhJ4aLCa6wYpgGfbYaksXMarU5aGCfOBtb94QX08AlEE R4OPY1iPlS8PjFkQL/hbDPxi7JwhnS4nYMQJ2XSi1QAZ0JU595PrlD6X7L+RAOt8nZkA uRxA== 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=mBGd+TjXoTmmACGl7Y73SKqJSxOy+rgXtcL0bQ3rHuxRd96KdZ2W+6LHJNHCM6rf0B nXyafrTq3r2hL3NsH55PePtHSDtCpQ3OpefgK89m3aredm/p183qGiIobcTpsKWLkwsA 4QFycNYUn4mxG2NZ3Bz1CW0tVUhu5yLqqdC1IYDaZzQUdqdheFb7AuczZSZcc2Sw3F61 XjGqQvjqiGejOyyGYepmZa63dM6sONFFi/nmGHVxgtgNqdq/0qPGP/GHnChRtEOp0n/1 D/RJEJhi/Ka1cHV1yivwmY5vh4vg/rXe+M4WkreeNVrOC1JkmKOJIO6hn5o5w5lY8JQ+ XjGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=asPa28aL; 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-200444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200444-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cad8d1si5028722a12.584.2024.06.04.03.43.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:43:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=asPa28aL; 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-200444-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200444-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 7941B1F2255B for ; Tue, 4 Jun 2024 10:43:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 638571482E4; Tue, 4 Jun 2024 10:40:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="asPa28aL" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (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 A9843146D79; Tue, 4 Jun 2024 10:40:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497624; cv=none; b=jkiQNGTqMb8vvOOZuTG+y8o/1tp4K7YaMt7qekZL3SIMEvSYJZ6eL4XO0xnMmM54Abalb9pvnlcFlafOJAoQacvpiIq+In/HlAHpJura6WRMMhPrmGGDKIStQ2x2Mds82jZN4vhqD5xVAlfHafyjWx18XZhx8eEzHRni0ukGuGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497624; c=relaxed/simple; bh=aeorz7ikHOyI3uGMrYyKmFVs7/hL9oxlIYMCbENPZPo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qnxDZ9zDjpk/bXCSnWcBKmvqoM/u892I5hXV4iPHI9Cld+BPnn181nE8xOXW8K6yNfywoXADcBq50bL5uFW5bRzdc6ysthPBnJrCI1l3nQZIURVdP0U07kA/AbamW3XCcvkBI91Nn8CoTI+nW+Utg22DWIY+4lyifyo5LfpflJw= 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=asPa28aL; arc=none smtp.client-ip=217.70.183.201 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 49BC21BF204; Tue, 4 Jun 2024 10:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717497621; 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=asPa28aLd8jgwUiNompuDnW0rrjuewJmwg/9avIJn5sQJRCRgGkb1l6gH3xHPNgZ0l3iSC OjGB1efKxd9xHdqutmoKdEYcPiM5NWjVOOVdul6M0kCXL2Q5Ru011glbNgf6/rl4nNR70c 9sCOo0Hyvf/mr40TlNLETRItWnDaB/OOhyPbTWjIsLt2AkRm3aLYWSp9JrbV2N6XDpFUUG JQCXGDD0ORiFdL1ox8QjLtwltivvNm7ueqHaYUX7MLVW7bUgD13IRxfVr5MUfbnY20zDUs SJZ0Skdq/9elB0a+fkPSGVVmANkS73GUONEtGfpOtTBHn3z+3gUWEQ7rnpCL+Q== From: Kory Maincent Date: Tue, 04 Jun 2024 12:39:47 +0200 Subject: [PATCH net-next v14 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: <20240604-feature_ptp_netnext-v14-12-77b6f6efea40@bootlin.com> References: <20240604-feature_ptp_netnext-v14-0-77b6f6efea40@bootlin.com> In-Reply-To: <20240604-feature_ptp_netnext-v14-0-77b6f6efea40@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