[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20260123025121.3713403-1-rdunlap@infradead.org>
Date: Thu, 22 Jan 2026 18:51:19 -0800
From: Randy Dunlap <rdunlap@...radead.org>
To: linux-kernel@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>,
Günther Noack <gnoack3000@...il.com>,
Mickaël Salaün <mic@...ikod.net>,
linux-security-module@...r.kernel.org,
Paul Moore <paul@...l-moore.com>,
James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>
Subject: [PATCH] landlock: fix struct layer_access_masks kernel-doc
Use the correct struct name and describe the struct member in
kernel-doc notation to prevent kernel-doc warnings.
WARNING: ../security/landlock/ruleset.h:313 expecting prototype for
struct layer_accesses. Prototype was for struct layer_access_masks instead
Fixes: 1ebf8e8d3245 ("landlock: Transpose the layer masks data structure")
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
---
Something like this is needed. Feel free to massage/correct it some.
Cc: Günther Noack <gnoack3000@...il.com>
Cc: Mickaël Salaün <mic@...ikod.net>
Cc: linux-security-module@...r.kernel.org
Cc: Paul Moore <paul@...l-moore.com>
Cc: James Morris <jmorris@...ei.org>
Cc: "Serge E. Hallyn" <serge@...lyn.com>
security/landlock/ruleset.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- linux-next-20260121.orig/security/landlock/ruleset.h
+++ linux-next-20260121/security/landlock/ruleset.h
@@ -302,9 +302,9 @@ landlock_get_scope_mask(const struct lan
}
/**
- * struct layer_accesses - A boolean matrix of layers and access rights
- *
- * This has a bit for each combination of layer numbers and access rights.
+ * struct layer_access_masks - A boolean matrix of layers and access rights
+ * @access: This has a bit for each combination of layer numbers and access
+ * rights.
* During access checks, it is used to represent the access rights for each
* layer which still need to be fulfilled. When all bits are 0, the access
* request is considered to be fulfilled.
Powered by blists - more mailing lists