Message ID | 20240226225806.1301152-1-kuba@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 3bfe90527d6387e19078c9f774d6328448bac201 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] tools: ynl: protect from old OvS headers | expand |
Jakub Kicinski <kuba@kernel.org> writes: > Since commit 7c59c9c8f202 ("tools: ynl: generate code for ovs families") > we need relatively recent OvS headers to get YNL to compile. > Add the direct include workaround to fix compilation on less > up-to-date OSes like CentOS 9. > > Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 26 Feb 2024 14:58:06 -0800 you wrote: > Since commit 7c59c9c8f202 ("tools: ynl: generate code for ovs families") > we need relatively recent OvS headers to get YNL to compile. > Add the direct include workaround to fix compilation on less > up-to-date OSes like CentOS 9. > > Signed-off-by: Jakub Kicinski <kuba@kernel.org> > > [...] Here is the summary with links: - [net-next] tools: ynl: protect from old OvS headers https://git.kernel.org/netdev/net-next/c/3bfe90527d63 You are awesome, thank you!
diff --git a/tools/net/ynl/Makefile.deps b/tools/net/ynl/Makefile.deps index 7dcec16da509..07373c5a7afe 100644 --- a/tools/net/ynl/Makefile.deps +++ b/tools/net/ynl/Makefile.deps @@ -21,3 +21,6 @@ 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_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) +CFLAGS_ovs_vport:=$(call get_hdr_inc,__LINUX_OPENVSWITCH_H,openvswitch.h)
Since commit 7c59c9c8f202 ("tools: ynl: generate code for ovs families") we need relatively recent OvS headers to get YNL to compile. Add the direct include workaround to fix compilation on less up-to-date OSes like CentOS 9. Signed-off-by: Jakub Kicinski <kuba@kernel.org> --- tools/net/ynl/Makefile.deps | 3 +++ 1 file changed, 3 insertions(+)