Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp521611lqp; Wed, 12 Jun 2024 08:24:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbBAeCf0uJ6Y5roSlAa/zOuO34vl/OUjkWpGzPHrKjr8bU/7fvcFi/cb5eaeRYqpz1xYPbQq4bbR/mzhrlhEfKzCoqW+4A/Cl8QHzgMQ== X-Google-Smtp-Source: AGHT+IFyN5hPCrVzHsi9gAY7kUZ+uKw5hTiV/sO9gD5a2MtAKO5qIOPDqyJUm6K1HpJbNvTtzDt1 X-Received: by 2002:a05:6e02:1906:b0:375:9cb9:9cec with SMTP id e9e14a558f8ab-375cd1a5699mr22610565ab.24.1718205856037; Wed, 12 Jun 2024 08:24:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718205856; cv=pass; d=google.com; s=arc-20160816; b=eZJfTSSbG0qvTeRqIySAIikC0oOXIc2Nvnqx1y91OQNxRnj5JaCrEZpY6JTB95nwXb bTtGahfIzTDW0qPKBW5cS+6ClP4YjZNfaNL4hbFx1V9InEwp1zKzJj+MysePO67z/CIQ 6OKYwCBbsOQLkkBs11W8NF1HCgDR96E3W7cog1DlJoPdtVDNvpIZRnALNphpnjWud9gr 1GBe62waKxFvOAi2u4PdoYlLHIxUNv+LxbQyhRzMoxpRcOL+fBwAGmnoavuso5cOxPCz TzpUwNXQuiBy9vlX7r0bkkJchlRpe6p4vDW7hU/se6UZREs9tseyMS8elU4NqjN+AeJQ uGHg== 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=uMnuCma5EN1mYWxfE9yxvzI7yrZrJ9Ae1v97/DqbDdk=; fh=B/Vas2UyzAQlmG3a8HCI9IFncHXUfUPeSljtUrzFeCQ=; b=Qo3Mm7f2o6SBjjitFlCG1oymzmswUrYmyRmuFlDCqTRyCBB+jFhjsbiKeUizhHs3T8 XgEIsdvpXoQPasrYyHPv6qVzkJ8ctCn1gzK2BX5VaYpH4BvcyXXNkWzAqz0uwkcDyJ1R +NVXAtZlALcISm/T92T39EkkOyHKE/P+aMFilW6yF/R3Pca50KUhabOiVmHJ/Vyjpjom uk1D7TGWSQ9GLrdsG0FUTzM8XRjssCtx9Qeb+eHjLCLeerulOy6syzJ/Vj5hCninGy2c YLvXernuiNvfwheTpI953r3yInhrH5JZ1EB8wtpN/8bQosUg29JVWJiuzXdxBV+GG/zk Kedg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VgdlRj8g; 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-211743-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211743-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e5bd1caec1si7665780a12.621.2024.06.12.08.24.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 08:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211743-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VgdlRj8g; 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-211743-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211743-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 73721B24D45 for ; Wed, 12 Jun 2024 15:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2B29180A92; Wed, 12 Jun 2024 15:05:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VgdlRj8g" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 6FB0817F4EC; Wed, 12 Jun 2024 15:05:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204706; cv=none; b=cmB1PHP9DX8rp3pDRjoRHzmHIAOJcB+1Uzvx/IqUeHM9Ofw24ynunjhbZqkDpXoLEIHekjSxu/cvQ46c48vtbTiheZNGor/vLd3DXIDGQ0RsgKOH+/1iEl3NJ8BArla/NosQBpZPH1T+0cmGNCAM1JJ1Xh1SJ0MtmDx5XTlBARA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718204706; c=relaxed/simple; bh=fo48TrjzteY/bWUklxe6GXLv01EZ7bLT1ntsQc67Cmw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i5r0P5NJOUUApbRIRwEdljedkbcBBm60yJravQ98IaRNlARh0td9hySrpMPyG8w7e3MF2kq/QQj5uJ70S4yrUzaxPEI2ngJGNWp+qX6bgX4w7StIDNQO1//g1CmBDGyEkpmXRlCsKR0jHkBXOaFFSFYtHwT9DGJTjuQ4uQDcZxU= 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=VgdlRj8g; arc=none smtp.client-ip=217.70.183.194 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 0778D4000B; Wed, 12 Jun 2024 15:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718204697; 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=uMnuCma5EN1mYWxfE9yxvzI7yrZrJ9Ae1v97/DqbDdk=; b=VgdlRj8geDzeFALXJ9KSmTOLuIjCa4RqqiflvKefaJvJ/18l0QGRLPE3cmt5EP/rP9x3LE nzKhBWUsaGIMshgkXESK6KbdCeekHfzZJEBP7ApRi/Gp/7RJ3FAzHBM0cDbq1gJEnKBU9E +0zWOQ/yoijrYFVcYduRA/pWKpSACGABbrBmdGkEsHGCu1ZCHNjsttJ2WLjdfOMW8Gmxay Y9neoF6e17+Cfu3thcvL2rRQg5J2Q4QMPHpM8MNegMxZNwztiWSC+KtpLROjQKpYNSsihU tIHMnTD6xDPk7PDxTqMlYsqva1Sc+hmnwPQODGlKUuALpRap1yrVVRjWwMXV5A== From: Kory Maincent Date: Wed, 12 Jun 2024 17:04:02 +0200 Subject: [PATCH net-next v15 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: <20240612-feature_ptp_netnext-v15-2-b2a086257b63@bootlin.com> References: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@bootlin.com> In-Reply-To: <20240612-feature_ptp_netnext-v15-0-b2a086257b63@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 f148a01dd1d1..392083cff5ee 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