netlink: specs: support unterminated-ok
Subsystems (3)
PATCH v2 1/1 netlink: specs: support unterminated-ok
ynl-gen-c.py supports check unterminated-ok, but the yaml schemas don't have this key. Add this to the yaml files.
---
v2: update subject, expand the doc and leave the change out of
genetlink spec. (Jakub Kicinski)
--- Documentation/netlink/genetlink-c.yaml | 5 +++++ Documentation/netlink/genetlink-legacy.yaml | 5 +++++ Documentation/netlink/netlink-raw.yaml | 5 +++++ 3 files changed, 15 insertions(+)
Documentation/netlink/genetlink-c.yaml +5 -0
@@ -208,6 +208,11 @@ properties: exact-len: description: Exact length for a string or a binary attribute. $ref: '#/$defs/len-or-define' + unterminated-ok: + description: | + For string attributes, do not check whether attribute + contains the terminating null character. + type: boolean sub-type: *attr-type display-hint: &display-hint description: |
Documentation/netlink/genetlink-legacy.yaml +5 -0
@@ -251,6 +251,11 @@ properties: exact-len: description: Exact length for a string or a binary attribute. $ref: '#/$defs/len-or-define' + unterminated-ok: + description: | + For string attributes, do not check whether attribute + contains the terminating null character. + type: boolean sub-type: *attr-type display-hint: *display-hint # Start genetlink-c
Documentation/netlink/netlink-raw.yaml +5 -0
@@ -270,6 +270,11 @@ properties: exact-len: description: Exact length for a string or a binary attribute. $ref: '#/$defs/len-or-define' + unterminated-ok: + description: | + For string attributes, do not check whether attribute + contains the terminating null character. + type: boolean sub-type: *attr-type display-hint: *display-hint # Start genetlink-c
Signature · 1 line
2.43.0
Quoted 4 lines · On Fri, 8 Mar 2024 16:12:39 +0800 Hangbin Liu wrote:
ynl-gen-c.pysupports check unterminated-ok, but the yaml schemas don't have this key. Add this to the yaml files.Signed-off-by Hangbin Liu <[email protected]>
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 9 lines · On Fri, 8 Mar 2024 16:12:39 +0800 you wrote:
ynl-gen-c.pysupports check unterminated-ok, but the yaml schemas don't have this key. Add this to the yaml files.Signed-off-by Hangbin Liu <[email protected]>---
v2: update subject, expand the doc and leave the change out of
genetlink spec. (Jakub Kicinski)[...]
Here is the summary with links:
- [PATCHv2,net-next] netlink: specs: support unterminated-ok
https://git.kernel.org/netdev/net-next/c/44208f59362e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html