Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp289175lqs; Tue, 5 Mar 2024 01:56:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrMGfK1OcOyAgT8ghlN1daHqHcwZKy2Culypf2lsG8BMGzH4tqCkwW53f3sLsVGpqsRujRp/0OnW34XeDKrRKZGwAvG5w80ePymvSZpw== X-Google-Smtp-Source: AGHT+IEvhVyC2CVqbfP9G9kRAyDqzxLHCRdl5mLEuKPMyv357w1BLvcFbs/dHfSi62UP/9XZ7bPY X-Received: by 2002:a17:902:fc43:b0:1dc:43d:964 with SMTP id me3-20020a170902fc4300b001dc043d0964mr1439366plb.48.1709632611492; Tue, 05 Mar 2024 01:56:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709632611; cv=pass; d=google.com; s=arc-20160816; b=xHMsSZ51D5yaEFLejNUzTvj1OXoZVreK9vntPguVapwvIxVj3Fik42DXetreVqiVKx ufS2pbJ8nwxa5p1BKavqq4vcFsFJ8/SR0qMZCdSuRqP3ZiUxcav1bJOhCb6dLXOQn9uW txo1+BD+MuhiUd8hxdkh/X5RAzlrKl+GIM46IJZnNiqBQr5JZe32QKXklngXXrp9Joji t6E647+P7VGEbx4jMRHDvqQqb0ASfNfDzYMcjBW+ecGfyvP1CU8s8QG7x/U321pUWpaf LbyZVo+lxar6tKgZZO8pHbFB79WHjkP2NMeeaD0nkjir7fMNVHFeH+dAmqIFmbIVGJ83 MWMg== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=MX+5rMA8HaFPZvzB4A99eJcBrl7j5grxkkcSrE9QG+I=; fh=12pro/Y/lDXTnCiR/HP+/xH9APUzuQXz1oRgHp1swnE=; b=01/PXknDLgXHstHXWulWCe1LWQCdz5zKFEDMuF0IcsCr6K46Kx0nuYw9mErkGZFrpi iC4JGXQBSKDqmQgKtqalbvFNywi8O344Jn5vX62EJpWITkscdkSaCPXN3RVb23Ziijnz 12hQUVrAzf5A077NrqozHrBRCoLxSawIBVAg6Fz0XQJbEFI6kp0j4AcAxyc9uH8Rbjih X1gMwmdwohw3TGISuyUHMg3q3gUre2nfEHKtl0GmCWJmpDaoVBcEEHvPvnODG/JFc/vJ CxwAI5cX1f2GjRc53tv5UeurkRAc6YMMyOsB7loodvEMfA1dmdd1NCYqWl6Hr5bl5s4c XS3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Pay51SMK; 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-92037-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lq14-20020a170903144e00b001dc6cd28614si10024371plb.231.2024.03.05.01.56.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 01:56:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92037-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=@bootlin.com header.s=gm1 header.b=Pay51SMK; 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-92037-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92037-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BF8BD282957 for ; Tue, 5 Mar 2024 09:56:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E7145473D; Tue, 5 Mar 2024 09:56:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Pay51SMK" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 AE5494CB58; Tue, 5 Mar 2024 09:56:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709632599; cv=none; b=u8uTQFv7nrgFTwmI5qXK07RgeG1wndCoGgtevQbAhmBEpMd1z1AQrwUWFZCMNRgDm7kCJOLnxunc2Cj7hKTDb5MIvoEmxOwAw2SDwYFxPcLJ/I3nqqbg5P0HTheIO6EpsvvO3hl2dyrq3VoH7pijXCk8rsNQxEKLNEvPJqu+HWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709632599; c=relaxed/simple; bh=nwrkN9uc9z2M1DQPXzOJOpOvm5K9UgIMGJJb5KqYuJE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qWVhOE8Naco64Xs2fYnqMPJb8lng+T3O7jiv4c3uGm+hmCVciIF5/+PCVkRxHIpCiJChsLcolZIN374RnWanVFVo0MIedZSfgJy6m8Fk8qY/0qbIb4iIejNAvA4HdG2RqvDorQA+p9lP6uPcpEKtlMyrHPvroxOySmtEyE8kDqw= 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=Pay51SMK; arc=none smtp.client-ip=217.70.183.196 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 288A9E0006; Tue, 5 Mar 2024 09:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709632590; 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=MX+5rMA8HaFPZvzB4A99eJcBrl7j5grxkkcSrE9QG+I=; b=Pay51SMKg+MFPEZLzIkQu8WBdqJ5ufqfFfZ67MaPo3m1SJHyQp30kcP6uDAsIlKz8xoIsD C9PCxELxEzvSPhuplMDuCtuw4MHAhU2AlRg0DT7pji4BNFKGEqKQCvfxeSsziNvASed6nD SNb8+wdTyCK4o4zuOhZwM4GisqEU1rP1TjM6u5cPtvbyWRhpZ7eh0ahbktDJdCo+udhf3P U4fVmmERduxQe9YDgUisPtiXbETzYs/D64fZzFlkdZWkcuXI8UgUOeQZ6iGX5azmN60JO2 M0ABVV1KXpRc8Z52N+GjYIf5MLXthaREmHacNCd8lFuyMVVf2km5j9rxxtAR1Q== Date: Tue, 5 Mar 2024 10:56:27 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Jakub Kicinski 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: <20240305105627.1d277a76@kmaincent-XPS-13-7390> In-Reply-To: <20240304184048.1c1724fa@kernel.org> References: <20240226-feature_ptp_netnext-v9-0-455611549f21@bootlin.com> <20240226-feature_ptp_netnext-v9-2-455611549f21@bootlin.com> <20240304184048.1c1724fa@kernel.org> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Mon, 4 Mar 2024 18:40:48 -0800 Jakub Kicinski wrote: > 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. =20 >=20 > ethtool can't be a module, exports are only needed for code which ends > up being called from modules.=20 Ah right! > > 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); =20 >=20 > since we don't expect modules to call this, how about we move dev_set* > and the new declaration to net/core/dev.h ? Ok for me. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com