Re: [PATCH net-next v9 02/13] net: Make dev_get_hwtstamp_phylib accessible

From
Köry Maincent <kory.maincent@bootlin.com>
Date
2024-03-05 10:02:44
Also in
linux-doc, lkml
Reply to
Köry Maincent, 2024-03-05
On Tue, 5 Mar 2024 10:56:27 +0100
Köry Maincent [off-list ref] wrote:
quoted
quoted
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 ?  
Ok for me.
I replied to quickly.
It seems this header in not include in ethtool part. 
This would imply adding #include "../core/dev.h" in the tsinfo.c file.
Not sure this is what we want.

Regards,
-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Thread (33 messages) 33 messages, 4 authors, last reply 2024-03-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help