Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp516123lqb; Wed, 29 May 2024 02:43:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxDfVFmsBE8sLC88z4gNd6UNa8WOf0UYx8KWzNsUM6G9WNNplMlx2Es0l4C3R4kLrzTgMO5vRlgwoLGnsLHxHNbrdWDbASjB8E+27hfQ== X-Google-Smtp-Source: AGHT+IFxJfqGooQpSAhiFDSuDywPav1EqsSHTBq0usdt2Ou9vI3Aoaq3yIrcE9VBaslXpceAZBCj X-Received: by 2002:ac8:5794:0:b0:43e:3b8e:6713 with SMTP id d75a77b69052e-43fb0e51708mr156481031cf.2.1716975801648; Wed, 29 May 2024 02:43:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716975801; cv=pass; d=google.com; s=arc-20160816; b=uN0qyvnw+v3+3/TQUrV5XD/S1fxLxQHIYInMnNXOBdZlqSYTQurQFsn6xm2UO7R7Dv CIZ4kwCZ3/hZS0kX7dMImXLjzKGVEmYmXJyw39Shem11gR3HLO2FmVp4LpRHCr+Kkw+c M7SRNRcS6NUFpO7oIvwKekXqnWAq4vLNkzjnmKVeRfaMjkP06qtC2gn9yr65rRylUTAJ nrhbvZ37aZhOJrefiCgZ6ITyzwAtyasq9bUXvQTZLl5FsyrbWL38rTMw+N6kQB9c2l8V oFjkAnRZYLROr4zz8uBIGyqT6kUsuhr8ELUvs6CBi8zMIvEyorepDU/tytIY3SuIKYrM soBQ== 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=nhh5hGHcSHn5wFTEABodCLu3Gt878UEb1h11mDpbgMgTZ+64Ms26RF31QmLsWo9JZd J7c7c+e73KBmI7TSCg8XvVkSCM4hYDrNs1zu9fgvbKGJfrCDOku8pDhWkSZa1SenDcfx lm30JytAiOxag8/U7XyLRGl64ZG3Fu1BmMXXK4ngYi/9MIz2BjATlmcR7MrSUw5fRu9A K5hcHUnyvqnATwGhY5FJPYVkzGH4c+90X9wtg21QfZCAjNbC9tO5rL7fy1gjfzRj/GKC eSbT55Kp5Tz4mfbpDUE3iBWr3hHZ7hyYYTl9E54RpxcAg5X38Yvm5P506KE3d8H/P2GX ts3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=M0mNYDiF; 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-193864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb819bafcsi117016701cf.533.2024.05.29.02.43.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 02:43:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=M0mNYDiF; 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-193864-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193864-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 624361C208A5 for ; Wed, 29 May 2024 09:43:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10E74178CEA; Wed, 29 May 2024 09:41:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="M0mNYDiF" 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 5EF6916E866; Wed, 29 May 2024 09:41:45 +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=1716975708; cv=none; b=gPZMHwRcAJBdSZ3FyC3/yeN0AiHhx5XBWovaforfBcJAwca81dBkiANN/kW/n1l++ZJ6G67XmtdMCKGPLyiZj70maGjRgRgjXz0Brz/cVGOFIZn5JJMDLPvd9EkyBDdrhztRAIoB2w+RlOH4R03SseJBDZ2QjveoCyoVWP7Fglw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716975708; c=relaxed/simple; bh=XsyXncgoWQvrngpkMvLt3DGzZeulRaLN3MbMuKPLCl0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Rs9f11PyyPlkbOgL8cMPmvgZGfvbBt5y5+0/SiG1W/GInxwCsRP2LV2tnIplPY9QHeQdekGcKb46Qi0Wauz3KVdal88FjTkh7oykuzA25hZN0SZ/mTw1dFPKNbOMmIxoBTVcZJtwMTNCsWF/FfOWd4tDIxZuX4IX0Y7dlfvLxxY= 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=M0mNYDiF; 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 C4E9260005; Wed, 29 May 2024 09:41:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716975699; 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=M0mNYDiFW53VmPdKF9dG0vFFieImAhIoTGdRzXBriFR5I16Bg9ed8uE0wOoQqX6Xg71ICl FNslRkyCXNfSBFuJq3Haz/cBzhlf/RckjbJaOlcmnLB1rRKJOBVvVQUU3+sAryG0DGpT+Q ye/TRxwYbh+Vhg4lnIyh9mxbZUq+BjqnlAXdUKSBOdIxccVM0FehRHcHpVL8oJH9i1NTBL 7SV9eFEwm5/F3qNHtcJj+YsmssQKHRG6CD1HKdNjr0OHf/4WsK9Yntx2z4dqzqWV2B4pwi xBbYFrSDy5MgBtGM95nEJQAZzI1ZiB8q4w5EsLkg+IxUNtJSNZAJZMd0ZuMUqw== From: Kory Maincent Date: Wed, 29 May 2024 11:39:34 +0200 Subject: [PATCH net-next v13 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: <20240529-feature_ptp_netnext-v13-2-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 , 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