From: Stanislav Fomichev <sdf@google.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, Stanislav Fomichev <sdf@google.com>
Subject: [PATCH net-next v2 2/4] ynl: mark max/mask as private for kdoc
Date: Thu, 27 Jul 2023 09:29:59 -0700 [thread overview]
Message-ID: <20230727163001.3952878-3-sdf@google.com> (raw)
In-Reply-To: <20230727163001.3952878-1-sdf@google.com>
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 <sdf@google.com>
---
tools/net/ynl/ynl-gen-c.py | 1 +
1 file changed, 1 insertion(+)
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 @@ _C_KW = {
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()},'
--
2.41.0.487.g6d72f3e995-goog
next prev parent reply other threads:[~2023-07-27 16:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-27 16:29 [PATCH net-next v2 0/4] ynl: couple of unrelated fixes Stanislav Fomichev
2023-07-27 16:29 ` [PATCH net-next v2 1/4] ynl: expose xdp-zc-max-segs Stanislav Fomichev
2023-07-27 16:29 ` Stanislav Fomichev [this message]
2023-07-27 16:30 ` [PATCH net-next v2 3/4] ynl: regenerate all headers Stanislav Fomichev
2023-07-27 16:30 ` [PATCH net-next v2 4/4] ynl: print xdp-zc-max-segs in the sample Stanislav Fomichev
2023-07-27 16:49 ` [PATCH net-next v2 0/4] ynl: couple of unrelated fixes Jakub Kicinski
2023-07-28 16:50 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230727163001.3952878-3-sdf@google.com \
--to=sdf@google.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).