Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2129358lqa; Tue, 30 Apr 2024 08:51:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUUS72Gt6ELf9aNOPMWFRkKwzpXfMoaX49dpQCuXUPGleGBsIgVWza+iTuOkBm+h/b1NoOPMsu1ui918g9OBRxj/qO2TsxLRgyDpuiyQ== X-Google-Smtp-Source: AGHT+IGIYHkTSoJZiWY6u5cddnbY4Xcu+yjBbYvnGf2fMQWWcXGLz5EC+zU0OkEMaCjD8anqYid8 X-Received: by 2002:a05:6512:902:b0:51c:f879:7d96 with SMTP id e2-20020a056512090200b0051cf8797d96mr7919319lft.38.1714492296643; Tue, 30 Apr 2024 08:51:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714492296; cv=pass; d=google.com; s=arc-20160816; b=R6qzkaQ8F6nkW8CTk6x/qdjJ7xKMPmLkF6SREo4OnFlCWQqWtLWu4/+4NMZNbWSoDd 34t9cVKEVuv9GC3fb9u9kxr/JfUc1edx3U1y+rryikihCuaJG68Z/Is6QB2c5jFbfloi hOxjcBXJwTn6kyUdesniX9UMij+SNJakZsw+NnQlI25ccENEDcH8/Tr2Wp/nnlGzk0Bb 0mhphNjguMpWVgiz63Vh2VsEYUz77/TQUIk2bgqf6BQHLOaPQuXpI4JXdF3qwkr1xRfG H9UO+u28qUD0BKNdB99L9d5UviHhruNFICHVEcF4Nt7EswtnzdwHjNRNs/kR2LZDfphZ Fb5g== 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=xlHPCLywel0MzV0mBSERbfTFdW1JmAebwc9eEjS78G8=; fh=B/Vas2UyzAQlmG3a8HCI9IFncHXUfUPeSljtUrzFeCQ=; b=f/xiy4y6O7orH8hqyZ3N8KSa1zAY5MxqsJ+VPPMCmXJWVJwHuvCGCrdd/Py+7FdJf4 f9Y7wOse0vjNIdaRxvrC3vU/OgtxfigVabM4bexPK2HQN9aA28SucTu7eFpQzO+PQxZZ sVXOIShs9rE2QKClfXzkPi48OMBEkPY/ridtAzX/loKSei6kS486+j3tQ+EJgl9hCbhr hiPnXlPUILZKe5csTRwh2wYTsaVslgZHSZZOUq8FgpLOrOkfOiew8tgE8T40zY0DrJ4o KAx/JEb0991ubjQqSd4yswAtLUdyDJJ4+muQ0zbizZVCXA+T4LyWvQZAzstp7QO8AMGz 2W8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=FdZGkFtE; 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-164310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164310-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 y31-20020a50bb22000000b00572703213b1si3920576ede.132.2024.04.30.08.51.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 08:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164310-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=FdZGkFtE; 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-164310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164310-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 35F2D1F21820 for ; Tue, 30 Apr 2024 15:51:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51059176FC3; Tue, 30 Apr 2024 15:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="FdZGkFtE" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 9D165173344; Tue, 30 Apr 2024 15:50:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492240; cv=none; b=BVjSkeeIZLNuZWQ5of0QEoMUjB7dDmoPCmr6Xd6jx4g5THYs2ICNYcoauYeBSebXdJ6jrH7Sr5pbJhJH5egoIdtctBSXSO0s8ktrpRBQyBLF790gvZdz5/X2+5dXaJU4l0cpFOKyCNg9pvuSewWVUhx0reXWJhCIwW1+B3YIiTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714492240; c=relaxed/simple; bh=VJPc8WmZzvyxcn/7sfR5efAUSqUidJZJJKnkz13s46Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OAdpuGINWfyrKldcu5DYa1wTRpFPvQ/E6rOZiWHBWLq7/V4dTLsyXrm+FUeu2VD8PVAWhBvYLCToKwh0b8V3Q8QPIG51EebMb2n/3+ahQbyIxq5VqNlM26afmQLZDjN3h39Nbyq6/tm3rpdfm53ZtOkVrB/ias7++vtKu1IIb+U= 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=FdZGkFtE; arc=none smtp.client-ip=217.70.183.200 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 398862000D; Tue, 30 Apr 2024 15:50:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1714492227; 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=xlHPCLywel0MzV0mBSERbfTFdW1JmAebwc9eEjS78G8=; b=FdZGkFtEUdr52Zgx2MzpI+qW0DGIn8tApu1jXNTpdnU2QrVU3ygB4Kt1IGJ5JZWTYiQmS6 7zNrBK5PiWdfOHrAvJpHXqcZZCOoRR5Ex0dO2Vkud8r/GCY7DheA58m1GLOKgVVTSQ6hNs 1xMyRUpRDfbbPKt9coTz3HLeqh/2zc4TT2+X8TIR3IdmmqhZRloooYNjMX9CyZz7FpCL4y tOJ3GPYPx6VnZtug76/s3ZJkeHQBPhev1sXCVNMyJwk+ZQ9E1753ei9lfoC5B7lQya37c0 GHWJIMGPDRPIDpMLvwNf8LhJj/dFFnLF+rjgcZkwooflmKNVCsWG84TmGYxQzA== From: Kory Maincent Date: Tue, 30 Apr 2024 17:49:45 +0200 Subject: [PATCH net-next v12 02/13] 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: <20240430-feature_ptp_netnext-v12-2-2c5f24b6a914@bootlin.com> References: <20240430-feature_ptp_netnext-v12-0-2c5f24b6a914@bootlin.com> In-Reply-To: <20240430-feature_ptp_netnext-v12-0-2c5f24b6a914@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 f849e7d110ed..f0e4572cdad5 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3901,9 +3901,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 8572d2c8dc4a..39819fffece7 100644 --- a/net/core/dev.h +++ b/net/core/dev.h @@ -167,4 +167,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