diff options
| author | Mickaël Salaün <mic@digikod.net> | 2026-07-03 16:17:09 +0200 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2026-07-03 16:19:02 +0200 |
| commit | 98c522eb8d64c67a82d489dd9b616a45851553e1 (patch) | |
| tree | a8a6a80ba59689ba8b168632efab61401e7dca1b | |
| parent | 22b5f1fe549c53fa04c7fca4e4b571415aa28d24 (diff) | |
| download | linux-next-98c522eb8d64c67a82d489dd9b616a45851553e1.tar.gz linux-next-98c522eb8d64c67a82d489dd9b616a45851553e1.zip | |
landlock: Fix kernel-doc for the nested quiet layer flag
kernel-doc emits "Excess struct member 'quiet' description in
'landlock_layer'" because "quiet" is a bitfield inside the named nested
struct "flags", but its inline comment used the bare member name
"@quiet:", which kernel-doc attributes to the enclosing landlock_layer.
Use the canonical dotted notation "@flags.quiet:" so kernel-doc resolves
the nested member, and include it in the generated documentation.
Cc: Justin Suess <utilityemal77@gmail.com>
Cc: Tingmao Wang <m@maowtm.org>
Fixes: a260c0055665 ("landlock: Add a place for flags to layer rules")
Link: https://patch.msgid.link/20260703141711.2016964-1-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
| -rw-r--r-- | security/landlock/ruleset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/landlock/ruleset.h b/security/landlock/ruleset.h index 61f3c253d5c9..0437adf17428 100644 --- a/security/landlock/ruleset.h +++ b/security/landlock/ruleset.h @@ -35,8 +35,8 @@ struct landlock_layer { */ struct { /** - * @quiet: Suppresses denial logs for the object covered by this - * rule in this domain. For filesystem rules, this inherits + * @flags.quiet: Suppresses denial logs for the object covered by + * this rule in this domain. For filesystem rules, this inherits * down the file hierarchy. */ u8 quiet : 1; |
