aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2023-07-27 09:29:59 -0700
committerJakub Kicinski <[email protected]>2023-07-28 09:33:12 -0700
commit37844828d290d2cb3906e2acc7846ad37b04db63 (patch)
tree8978bf26d772f3c10d5ec741333ff97add03c320
parente5c157f081abf6ecfda72661d1c2700ded9a90a3 (diff)
ynl: mark max/mask as private for kdoc
Simon mentioned in another thread that it makes kdoc happy and Jakub confirms that commit e27cb89a22ad ("scripts: kernel-doc: support private / public marking for enums") actually added the needed support. Signed-off-by: Stanislav Fomichev <[email protected]> Reviewed-by: Jakub Kicinski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rwxr-xr-xtools/net/ynl/ynl-gen-c.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/net/ynl/ynl-gen-c.py b/tools/net/ynl/ynl-gen-c.py
index 71c5e79e877f..650be9b8b693 100755
--- a/tools/net/ynl/ynl-gen-c.py
+++ b/tools/net/ynl/ynl-gen-c.py
@@ -2125,6 +2125,7 @@ def render_uapi(family, cw):
if const.get('render-max', False):
cw.nl()
+ cw.p('/* private: */')
if const['type'] == 'flags':
max_name = c_upper(name_pfx + 'mask')
max_val = f' = {enum.get_mask()},'