Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp2375523rbb; Tue, 4 Jun 2024 03:40:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhyfxzygCXc13uAxvk/BzXOWLTlN8s+cbLva4ATs4DwFXsk7EoJyP7PcArmedV8fB1oCAB26tA5QWc3VON2HJmU8mlDUKiyRRIvpnGow== X-Google-Smtp-Source: AGHT+IG81YWZDYwXXH+CJtSsaT7Ujk2KX9x759VYTlp+iMIPux2JwHIwo2tTvvFPCJSMbDqBOY+D X-Received: by 2002:a50:d7d3:0:b0:572:1589:eb98 with SMTP id 4fb4d7f45d1cf-57a363dd4a1mr8553105a12.12.1717497646746; Tue, 04 Jun 2024 03:40:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717497646; cv=pass; d=google.com; s=arc-20160816; b=SLEOfVxG8wporfWe+Twi72dovulceIHj0f/ZxtjCrP4t8KejiKTtdqggwyMcDdVyPr s2vF/M1e0EYIUPT0AuNelEnAucINvd+gV7RT58EePT00dmyoHBAm3MsW5IH8PQ6G8gj1 V62A6j96ozaSup6RVEC4B75w5Ua9p9UkvQtMEKkKH4pGSaN9BRCQj+2VlK7evVyTjCIX f+s4Q2c+FaK3D2G9WdU5BvfBwuOMMGe9i9J1c3rmCfvC6bwwQ0e3ZhwH1+q4MR5hDfI0 OxngSU+lz2I1vnansGxGXkNyj9Gd+IoTUNQJH8jox/gVzLh3+huNRkxUBp5V3KzE4ROJ trOg== 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=VNk3Stk535OTiM2Qdc5kDPrQfw9T0Zu8ZaQfzXwH48o=; fh=B/Vas2UyzAQlmG3a8HCI9IFncHXUfUPeSljtUrzFeCQ=; b=B4JGpdWWKh6WoDK+e4cNtg4jzmpX3JVtvn4Z76AauKvQcBdFRYuvcltQoDrvTtoqc2 TCNOdQIFUnQjtTz5XB6YKbpNWDb0PR9QusDGCI2XyuBUv98WoKKnuOBfPCN8qBIgxRsP VFI56T5K0tgTeOlJ7CKHT9nLeNAtRmiOPhIL5/SOH4uEndvn7U735OkMclaVWL5phHDu mNnHcIG/uggHCdhV2DoStWJyUdCmpL535QpE1FJ9FfebH9wNmmsbQ4oePDij0/7Gsodu 1B2Yd9azejsUNQYbWm5Y94kT7E0BC4MEP1p7Xha6uvgnErFOUMlsEbYGmwMFU8jI5hIC KxzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LyVmBlcG; 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-200434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200434-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-57a31b819c9si5134091a12.110.2024.06.04.03.40.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:40:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200434-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=LyVmBlcG; 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-200434-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200434-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 3861F1F235F3 for ; Tue, 4 Jun 2024 10:40:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2824144D00; Tue, 4 Jun 2024 10:40:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="LyVmBlcG" 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 6FF55145335; Tue, 4 Jun 2024 10:39:59 +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=1717497601; cv=none; b=qRSp9IjHYXa70A9iEQJcJMMjPltGL3ECr8NR3IRADK8i4VaUhNWTeSO+czsBXIVNfeII4INvgJ5j+PnM92f6kIdt/0H33MNkzR29FsvhV30TImI81IxeTwdJONctZ814J/lJn0kzgETZqbffFAfguBsWM2V8s73Pbd42tdAJ2y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497601; c=relaxed/simple; bh=XsyXncgoWQvrngpkMvLt3DGzZeulRaLN3MbMuKPLCl0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KvPRYDA/gmvRyaHBFo0cMNaMVgnxtmtyTKUj9hQ7xU8v82AXtn8NklSmMGDvWD8kY0N4QW8fkqGkAnofOxEGGCm1cFJhLZgstiRcEpkLjcU/WkPw2GuysCpft5wvYX09nyRCuR+rm+xyxNKucu3pFUn+S6nnsmyTatnX1oorRFw= 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=LyVmBlcG; 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 7AB8C1BF206; Tue, 4 Jun 2024 10:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717497598; 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=VNk3Stk535OTiM2Qdc5kDPrQfw9T0Zu8ZaQfzXwH48o=; b=LyVmBlcGt396Ko6rtVMGZsH7VxtGyON3hY+19EKkPzScwYbD7/j9OLdy3IOYCw11tu4aA6 7WldzT+MdwqRVfvU5VwlMZ0gLnO3My7mVxw1yXZe7JxG6iLjnxEj0vSZCwddAUC3r/M4a/ gEZVp9CeNJE1FClhQnVZjDvNgErHYXDgI8Qn+fY9xVVriEKwE45W41k8OFzgwkNQowMVWS NDXyMTSCdmxXSrkF78wteyh4T0WAXkwqG+fCYLAEgBMAmIpEdJp7+Ex2AFZP/rInb31FP/ mzS/9ORE9EL2CcsYpbyZVFxvWI//JVQb0plZ+XxtElbyYtS0QMDpPq+C14pzCA== From: Kory Maincent Date: Tue, 04 Jun 2024 12:39:37 +0200 Subject: [PATCH net-next v14 02/14] net: Move dev_set_hwtstamp_phylib to net/core/dev.h 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-2-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 , Willem de Bruijn X-Mailer: b4 0.13.0 X-GND-Sasl: kory.maincent@bootlin.com This declaration was added to the header to be called from ethtool. ethtool is separated from core for code organization but it is not really a separate entity, it controls very core things. As ethtool is an internal stuff it is not wise to have it in netdevice.h. Move the declaration to net/core/dev.h instead. Remove the EXPORT_SYMBOL_GPL call as ethtool can not be built as a module. Reviewed-by: Willem de Bruijn Signed-off-by: Kory Maincent --- Change in v10: - New patch. --- include/linux/netdevice.h | 3 --- net/core/dev.h | 4 ++++ net/core/dev_ioctl.c | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index d20c6c99eb88..2179fd437271 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3903,9 +3903,6 @@ int generic_hwtstamp_get_lower(struct net_device *dev, int generic_hwtstamp_set_lower(struct net_device *dev, struct kernel_hwtstamp_config *kernel_cfg, struct netlink_ext_ack *extack); -int dev_set_hwtstamp_phylib(struct net_device *dev, - struct kernel_hwtstamp_config *cfg, - struct netlink_ext_ack *extack); int dev_ethtool(struct net *net, struct ifreq *ifr, void __user *userdata); unsigned int dev_get_flags(const struct net_device *); int __dev_change_flags(struct net_device *dev, unsigned int flags, diff --git a/net/core/dev.h b/net/core/dev.h index b7b518bc2be5..58f88d28bc99 100644 --- a/net/core/dev.h +++ b/net/core/dev.h @@ -166,4 +166,8 @@ static inline void dev_xmit_recursion_dec(void) __this_cpu_dec(softnet_data.xmit.recursion); } +int dev_set_hwtstamp_phylib(struct net_device *dev, + struct kernel_hwtstamp_config *cfg, + struct netlink_ext_ack *extack); + #endif diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c index 9a66cf5015f2..b9719ed3c3fd 100644 --- a/net/core/dev_ioctl.c +++ b/net/core/dev_ioctl.c @@ -363,7 +363,6 @@ int dev_set_hwtstamp_phylib(struct net_device *dev, return 0; } -EXPORT_SYMBOL_GPL(dev_set_hwtstamp_phylib); static int dev_set_hwtstamp(struct net_device *dev, struct ifreq *ifr) { -- 2.34.1