diff mbox series

[net] tools: ynl: add header guards for nlctrl

Message ID 20240315002108.523232-1-kuba@kernel.org (mailing list archive)
State Accepted
Commit 9966e329d6756ea80832376991eb5b0d5ff2cf6b
Delegated to: Netdev Maintainers
Headers show
Series [net] tools: ynl: add header guards for nlctrl | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag present in non-next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 8 this patch: 8
netdev/build_tools success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 5 of 5 maintainers
netdev/build_clang success Errors and warnings before: 8 this patch: 8
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 8 this patch: 8
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 7 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-03-15--03-00 (tests: 907)

Commit Message

Jakub Kicinski March 15, 2024, 12:21 a.m. UTC
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 <kuba@kernel.org>
---
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: jiri@resnulli.us
CC: chuck.lever@oracle.com
CC: donald.hunter@gmail.com
---
 tools/net/ynl/Makefile.deps | 1 +
 1 file changed, 1 insertion(+)

Comments

Donald Hunter March 15, 2024, 5:02 p.m. UTC | #1
Jakub Kicinski <kuba@kernel.org> writes:

> 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 <kuba@kernel.org>

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
patchwork-bot+netdevbpf@kernel.org March 19, 2024, 11 a.m. UTC | #2
Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

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!
diff mbox series

Patch

diff --git a/tools/net/ynl/Makefile.deps b/tools/net/ynl/Makefile.deps
index 07373c5a7afe..f4e8eb79c1b8 100644
--- a/tools/net/ynl/Makefile.deps
+++ b/tools/net/ynl/Makefile.deps
@@ -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)