Skip to contentSkip to conversation

netlink: specs: allow uapi-header in genetlink

PATCH Applied Jakub Kicinski 2 participants 2 messages Mar 16, 2023 – Mar 17, 2023

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 netlink: specs: allow uapi-header in genetlink

Chuck wanted to put the UAPI header in linux/net/ which seems reasonable, allow genetlink families to choose the location. It doesn't really matter for non-C-like languages.

---
 Documentation/netlink/genetlink-c.yaml      | 2 +-
 Documentation/netlink/genetlink-legacy.yaml | 2 +-
 Documentation/netlink/genetlink.yaml        | 3 +++
 3 files changed, 5 insertions(+), 2 deletions(-)
Documentation/netlink/genetlink-c.yaml +1 -1
index f082a5ad7cf1..c83643d403b7 100644
@@ -33,10 +33,10 @@ additionalProperties: False
   protocol:
     description: Schema compatibility level. Default is "genetlink".
     enum: [ genetlink, genetlink-c ]
-  # Start genetlink-c
   uapi-header:
     description: Path to the uAPI header, default is linux/${family-name}.h
     type: string
+  # Start genetlink-c
   c-family-name:
     description: Name of the define for the family name.
     type: string
Documentation/netlink/genetlink-legacy.yaml +1 -1
index c6b8c77f7d12..792875dd7ed1 100644
@@ -33,10 +33,10 @@ additionalProperties: False
   protocol:
     description: Schema compatibility level. Default is "genetlink".
     enum: [ genetlink, genetlink-c, genetlink-legacy ] # Trim
-  # Start genetlink-c
   uapi-header:
     description: Path to the uAPI header, default is linux/${family-name}.h
     type: string
+  # Start genetlink-c
   c-family-name:
     description: Name of the define for the family name.
     type: string
Documentation/netlink/genetlink.yaml +3 -0
index b2d56ab9e615..8952e84ff207 100644
@@ -33,6 +33,9 @@ additionalProperties: False
   protocol:
     description: Schema compatibility level. Default is "genetlink".
     enum: [ genetlink ]
+  uapi-header:
+    description: Path to the uAPI header, default is linux/${family-name}.h
+    type: string
 
   definitions:
     description: List of type and constant definitions (enums, flags, defines).
Signature · 1 line
2.39.2
#1 lore raw
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

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

Quoted 10 lines · On Wed, 15 Mar 2023 21:50:27 -0700 you wrote:

Chuck wanted to put the UAPI header in linux/net/ which seems reasonable, allow genetlink families to choose the location. It doesn't really matter for non-C-like languages.

---
 Documentation/netlink/genetlink-c.yaml      | 2 +-
 Documentation/netlink/genetlink-legacy.yaml | 2 +-
 Documentation/netlink/genetlink.yaml        | 3 +++
 3 files changed, 5 insertions(+), 2 deletions(-)

Here is the summary with links:
- [net-next] netlink: specs: allow uapi-header in genetlink

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

You are awesome, thank you!

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