summaryrefslogtreecommitdiff
path: root/Documentation/security/snp-tdx-threat-model.rst
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-04-11 12:32:08 +0300
committerJonathan Corbet <corbet@lwn.net>2024-04-24 22:16:55 +0300
commit5f8e4007c10d8f7a0f28be8a7894eb7712d0b111 (patch)
tree9296d41a50a0072c7d1f35ffe04221786e59561e /Documentation/security/snp-tdx-threat-model.rst
parenta3b97f341d03f7e46273c845de6c711c7f215d5c (diff)
downloadlinux-5f8e4007c10d8f7a0f28be8a7894eb7712d0b111.tar.xz
kernel-doc: fix struct_group_tagged() parsing
kernel-doc emits a warning on struct_group_tagged() if you describe your struct group member: include/net/libeth/rx.h:69: warning: Excess struct member 'fp' description in 'libeth_fq' The code: /** * struct libeth_fq - structure representing a buffer queue * @fp: hotpath part of the structure * @pp: &page_pool for buffer management [...] */ struct libeth_fq { struct_group_tagged(libeth_fq_fp, fp, struct page_pool *pp; [...] ); When a struct_group_tagged() is encountered, we need to build a `struct TAG NAME;` from it, so that it will be treated as a valid embedded struct. Decouple the regex and do the replacement there. As far as I can see, this doesn't produce any new warnings on the current mainline tree. Reported-by: Jakub Kicinski <kuba@kernel.org> Closes: https://lore.kernel.org/netdev/20240405212513.0d189968@kernel.org Fixes: 50d7bd38c3aa ("stddef: Introduce struct_group() helper macro") Signed-off-by: Kees Cook <keescook@chromium.org> Co-developed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20240411093208.2483580-1-aleksander.lobakin@intel.com
Diffstat (limited to 'Documentation/security/snp-tdx-threat-model.rst')
0 files changed, 0 insertions, 0 deletions