]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
landlock: Fix kernel-doc warning for pointer-to-array parameters
authorMickaël Salaün <mic@digikod.net>
Tue, 10 Mar 2026 17:20:03 +0000 (18:20 +0100)
committerMickaël Salaün <mic@digikod.net>
Tue, 7 Apr 2026 16:51:05 +0000 (18:51 +0200)
commit64617ec0339f3f52accf5614bc918a940a503f7a
tree73c0f659df82ab244feb2bb8f7029f2e3be3c8ba
parentaba1de96e80a26648a8e3b593a106041e3e1e2a1
landlock: Fix kernel-doc warning for pointer-to-array parameters

The insert_rule() and create_rule() functions take a
pointer-to-flexible-array parameter declared as:

  const struct landlock_layer (*const layers)[]

The kernel-doc parser cannot handle a qualifier between * and the
parameter name in this syntax, producing spurious "Invalid param" and
"not described" warnings.

Remove the const qualifier of the "layers" argument to avoid this
parsing issue.

Cc: Günther Noack <gnoack@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Reviewed-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20260310172004.1839864-1-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
security/landlock/ruleset.c