Skip to contentSkip to conversation

tools: ynl: fix header guards

PATCH Applied Jakub Kicinski 3 participants 3 messages Feb 22, 2024 – Feb 24, 2024

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 tools: ynl: fix header guards

devlink and ethtool have a trailing _ in the header guard. I must have copy/pasted it into new guards, assuming it's a headers_install artifact.

This fixes build if system headers are old.

Fixes 8f109e91b852 ("tools: ynl: include dpll and mptcp_pm in C codegen")

---
CC: [email protected]
CC: [email protected]

---
 tools/net/ynl/Makefile.deps | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/net/ynl/Makefile.deps +2 -2
index e6154a1255f8..7dcec16da509 100644
@@ -15,9 +15,9 @@ UAPI_PATH:=../../../../include/uapi/
 get_hdr_inc=-D$(1) -include $(UAPI_PATH)/linux/$(2)
 
 CFLAGS_devlink:=$(call get_hdr_inc,_LINUX_DEVLINK_H_,devlink.h)
-CFLAGS_dpll:=$(call get_hdr_inc,_LINUX_DPLL_H_,dpll.h)
+CFLAGS_dpll:=$(call get_hdr_inc,_LINUX_DPLL_H,dpll.h)
 CFLAGS_ethtool:=$(call get_hdr_inc,_LINUX_ETHTOOL_NETLINK_H_,ethtool_netlink.h)
 CFLAGS_handshake:=$(call get_hdr_inc,_LINUX_HANDSHAKE_H,handshake.h)
-CFLAGS_mptcp_pm:=$(call get_hdr_inc,_LINUX_MPTCP_PM_H_,mptcp_pm.h)
+CFLAGS_mptcp_pm:=$(call get_hdr_inc,_LINUX_MPTCP_PM_H,mptcp_pm.h)
 CFLAGS_netdev:=$(call get_hdr_inc,_LINUX_NETDEV_H,netdev.h)
 CFLAGS_nfsd:=$(call get_hdr_inc,_LINUX_NFSD_NETLINK_H,nfsd_netlink.h)
Signature · 1 line
2.43.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Fri, Feb 23, 2024 at 12:48:31AM CET, [email protected] wrote:

devlink and ethtool have a trailing _ in the header guard. I must have copy/pasted it into new guards, assuming it's a headers_install artifact.

This fixes build if system headers are old.

Fixes 8f109e91b852 ("tools: ynl: include dpll and mptcp_pm in C codegen")
#2 lore raw
In reply to Jakub Kicinski
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Thu, 22 Feb 2024 15:48:31 -0800 you wrote:

devlink and ethtool have a trailing _ in the header guard. I must have copy/pasted it into new guards, assuming it's a headers_install artifact.

This fixes build if system headers are old.

Fixes 8f109e91b852 ("tools: ynl: include dpll and mptcp_pm in C codegen")

[...]

Here is the summary with links:
- [net-next] tools: ynl: fix header guards

    https://git.kernel.org/netdev/net-next/c/d662c5b3ce6d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html