Re: [PATCH net-next v8 08/13] netlink: specs: add ethnl PHY_GET command set

From
Maxime Chevallier <maxime.chevallier@bootlin.com>
Date
2024-02-22 07:50:02
Also in
linux-arm-kernel, lkml
Reply to
Jakub Kicinski, 2024-02-22
Hello Jakub,

On Wed, 21 Feb 2024 17:00:23 -0800
Jakub Kicinski [off-list ref] wrote:
On Tue, 20 Feb 2024 19:42:11 +0100 Maxime Chevallier wrote:
quoted
+      -
+        name: upstream-phy-index
+        type: u32  
The C define appears to be called:

	ETHTOOL_A_PHY_UPSTREAM_INDEX,		/* u32 */

either it needs to gain the PHY_ or the spec needs to lose the phy-,
otherwise C code gen gets upset:
I'll do it, sorry about that.
ethtool-user.c:689:10: error: ‘ETHTOOL_A_PHY_UPSTREAM_PHY_INDEX’ undeclared here (not in a function); did you mean ‘ETHTOOL_A_PHY_UPSTREAM_INDEX’?
  689 |         [ETHTOOL_A_PHY_UPSTREAM_PHY_INDEX] = { .name = "upstream-phy-index", .type = YNL_PT_U32, },
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          ETHTOOL_A_PHY_UPSTREAM_INDEX

Unfortunately ethtool in the in-between state where we can auto-gen
user space code (or rather most of it) but the uAPI header is not
auto-generated so we need to take extra care to keep things in sync :(
Is there anything I run for testing, so that I can make sure this
doesn't happen again ?

Thanks,

Maxime
Thread (17 messages) 17 messages, 2 authors, last reply 2024-02-22
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