tools: ynl: add header guards for nlctrl
Subsystems (3)
Jakub Kicinski
maintainerPATCH 1/1 tools: ynl: add header guards for nlctrl
I "extracted" YNL C into a GitHub repo to make it easier to use in other projects: https://github.com/linux-netdev/ynl-c
GitHub actions use Ubuntu by default, and the kernel headers there are missing f329a0ebeaba ("genetlink: correct uAPI defines"). Add the direct include workaround for nlctrl.
---
The Fixes tag is a bit unfair here, we never promised very old headers will work. At the same time Ubuntu may be fairly popular so seems worth making it work.
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- tools/net/ynl/Makefile.deps | 1 + 1 file changed, 1 insertion(+)
tools/net/ynl/Makefile.deps +1 -0
@@ -20,6 +20,7 @@ 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_netdev:=$(call get_hdr_inc,_LINUX_NETDEV_H,netdev.h) +CFLAGS_nlctrl:=$(call get_hdr_inc,__LINUX_GENERIC_NETLINK_H,genetlink.h) CFLAGS_nfsd:=$(call get_hdr_inc,_LINUX_NFSD_NETLINK_H,nfsd_netlink.h) CFLAGS_ovs_datapath:=$(call get_hdr_inc,__LINUX_OPENVSWITCH_H,openvswitch.h) CFLAGS_ovs_flow:=$(call get_hdr_inc,__LINUX_OPENVSWITCH_H,openvswitch.h)
Signature · 1 line
2.44.0
Quoted 9 lines · Jakub Kicinski
I "extracted" YNL C into a GitHub repo to make it easier to use in other projects: https://github.com/linux-netdev/ynl-c
GitHub actions use Ubuntu by default, and the kernel headers there are missing
f329a0ebeaba("genetlink: correct uAPI defines"). Add the direct include workaround for nlctrl.Fixes 768e044a5fd4 ("doc/netlink/specs: Add spec for nlctrl netlink family")Signed-off-by Jakub Kicinski <[email protected]>
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 8 lines · On Thu, 14 Mar 2024 17:21:08 -0700 you wrote:
I "extracted" YNL C into a GitHub repo to make it easier to use in other projects: https://github.com/linux-netdev/ynl-c
GitHub actions use Ubuntu by default, and the kernel headers there are missing
f329a0ebeaba("genetlink: correct uAPI defines"). Add the direct include workaround for nlctrl.[...]
Here is the summary with links:
- [net] tools: ynl: add header guards for nlctrl
https://git.kernel.org/netdev/net/c/9966e329d675
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html