Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp136843lqs; Mon, 4 Mar 2024 18:41:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUvhugfNVO/8YCzEbfdM7m0uk/pQWSDkE4i24rn5+NJ9erbHiv182yaXPckzUTgUdq5WjTPvcnpzbEH+LhStdBWxYdE58k2Rm7CUOoYIA== X-Google-Smtp-Source: AGHT+IGGSufzSMrvbR5Ss/x5aEqrg8PcNx2acVSBNPubcfXYR/0aQNnfS8nnzddGNadpv8iwr7P1 X-Received: by 2002:a17:90a:ca8e:b0:29b:4dfc:710b with SMTP id y14-20020a17090aca8e00b0029b4dfc710bmr3978262pjt.28.1709606469233; Mon, 04 Mar 2024 18:41:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709606469; cv=pass; d=google.com; s=arc-20160816; b=YGGS7gu8jbMmxCV80ucPR8OgQBRQXVu2pHaNLQWsHWf7vd8jFRFXa4L7wvEl1EeJy+ fhZwT9ANFheXmHNfb2xmVXYXGnWtdQQ2yBG1fIqvHPv+arBXnW5hozUWBiAkp+hyxB+T U4tgYDgoCxDKJBcK24izOgj2DS+yB/gjTsr15BzeC8cnDUSqP6MenhmlrlBS0QXfO+ZM Hkda4YShkQn9iaHoVAm7hLgXj30KpXgRzPgqReGRblg1WFg0dvNGiWPV9AiNh8Cv6smU emIKxDsS/GY0f4WP7CVZ0nY4hB2QTlyRc+i4TyxIChWzeUWnJy+iI604y6gw/Rs4tHW3 9NNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=TtRzVJOOzML2kJdup+sa+AUUftlvjQ6Bjo/lS0OyUqs=; fh=AF8u3Hq2LCAR86VDBUa9qi/2kjQJaPvHiqWvnKg4Z08=; b=el60Yb1I1A4NZjEEsMkJsSrGn6Mveqg5cBvg5mc21sUf0OSpDDA+m8ht4wK+wH1JY0 e2RCuphV90bXM2GEVM2jqioeDiCF/lMS4InmXBmCVgTx3M4CSquowkFvZ8rX6gJfl8vv aLwGYVCXlV2qR9MB/CeJ7hU1Y/JhV15TAc7mlnubgcf1uW9u/fMoghVQ8gGENMhxequq H0i0KsUk1NQAqYYjQ4bzAyLMEnZhi5gp3Mu/IRyLzlTcxmVkgq5WXrsnt+p1KEr0kfpG 9ak9EiW1bVb3i9R6zFL01RRTAHai6XoKYXOqTvBvfvoPYGZH670TmSrSTRuwSaIKn5Zb VMxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BM+i0cEA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id qd6-20020a17090b3cc600b0029acb1fa197si9468702pjb.151.2024.03.04.18.41.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 18:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BM+i0cEA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-91566-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E3414282218 for ; Tue, 5 Mar 2024 02:41:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D1C628E3F; Tue, 5 Mar 2024 02:40:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BM+i0cEA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.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 2C53338FA7; Tue, 5 Mar 2024 02:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709606451; cv=none; b=VgxrWWTUgMVoxkrv4hGEBj33D9t26oBvZqO1MN6IZ0GyUcNgMcUPqoURcvtW4zJtcCvcFIrwiatErscsIUeY8lgUi7paIi00xzTjXAJsTxsYEZte9wWjrobdawU7nEJY3DdGtoYaGZmU8C6XCBMbuZlGZJFN61wfeslo/KIpOXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709606451; c=relaxed/simple; bh=CQzMKNCwVTjpr3SSD1NmN7SsJXn83hglz+/F6GSKw3Q=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uiML74pgTHOWDWAJn65J5pezYZJbDGM996gyBa6Y/YSjwj7K95Ml6y2q0IttDxf/2++Yk+LfWSrXpu2qov6hCZGE0yqGFTFiFdtzDm9/i5UrMgnSJ7XHR4EZWvsVLRx9fDhzmE4ao67sOfoFGVwmDIfeg6lXD6O7diEvfkzntx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BM+i0cEA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53716C433F1; Tue, 5 Mar 2024 02:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709606450; bh=CQzMKNCwVTjpr3SSD1NmN7SsJXn83hglz+/F6GSKw3Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BM+i0cEAgMy8ZPWrCMe8NFXsg2Ndg/+9RJ4RICl2m7QwcbkSUTM8OVLs2rNiV8jDD q8312IGOEx/Io5NWkO9Q3ijsN/l71S9NUJso4ja/DCx3EtQR/stuQgSQaGZao/CvIA bz340722QkXYzabtrNwwvJA7DqWlsSjwyEDfPkUB+H0RdiTN2eBm8YglGYbtnFlTWc vo329/BB45dAeDOoLooX5f45PiR7HjAE+kKrP6vrOAVkD0QzUaxw4WaoGZ0k1xh61s EUXbGjI+EmHuKj6u0Ya14r6fEl2ws5OMJxUVkIQu4CTqYIWjhRaNI94tGtMTszWWKi de8IyeNdIHmMg== Date: Mon, 4 Mar 2024 18:40:48 -0800 From: Jakub Kicinski To: Kory Maincent Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , 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 , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Maxime Chevallier , Rahul Rameshbabu Subject: Re: [PATCH net-next v9 02/13] net: Make dev_get_hwtstamp_phylib accessible Message-ID: <20240304184048.1c1724fa@kernel.org> In-Reply-To: <20240226-feature_ptp_netnext-v9-2-455611549f21@bootlin.com> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-2-455611549f21@bootlin.com> 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=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 26 Feb 2024 14:39:53 +0100 Kory Maincent wrote: > Make the dev_get_hwtstamp_phylib function accessible in prevision to use > it from ethtool to read the hwtstamp current configuration. ethtool can't be a module, exports are only needed for code which ends up being called from modules. > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index f07c8374f29c..7f78aef73fe1 100644 > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -4005,6 +4005,8 @@ int generic_hwtstamp_set_lower(struct net_device *dev, > int dev_set_hwtstamp_phylib(struct net_device *dev, > struct kernel_hwtstamp_config *cfg, > struct netlink_ext_ack *extack); > +int dev_get_hwtstamp_phylib(struct net_device *dev, > + struct kernel_hwtstamp_config *cfg); since we don't expect modules to call this, how about we move dev_set* and the new declaration to net/core/dev.h ?