mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] lsm: fix kernel-doc struct member names
@ 2025-12-14 20:15 Randy Dunlap
  2025-12-16  2:51 ` Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2025-12-14 20:15 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Paul Moore, James Morris, Serge E. Hallyn,
	linux-security-module

Use the correct struct member names to avoid kernel-doc warnings:

Warning: include/linux/lsm_hooks.h:83 struct member 'name' not described
 in 'lsm_id'
Warning: include/linux/lsm_hooks.h:183 struct member 'initcall_device' not
 described in 'lsm_info'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Paul Moore <paul@paul-moore.com>
Cc: James Morris <jmorris@namei.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: linux-security-module@vger.kernel.org
---
 include/linux/lsm_hooks.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20251201.orig/include/linux/lsm_hooks.h
+++ linux-next-20251201/include/linux/lsm_hooks.h
@@ -73,7 +73,7 @@ struct lsm_static_calls_table {
 
 /**
  * struct lsm_id - Identify a Linux Security Module.
- * @lsm: name of the LSM, must be approved by the LSM maintainers
+ * @name: name of the LSM, must be approved by the LSM maintainers
  * @id: LSM ID number from uapi/linux/lsm.h
  *
  * Contains the information that identifies the LSM.
@@ -164,7 +164,7 @@ enum lsm_order {
  * @initcall_core: LSM callback for core_initcall() setup, optional
  * @initcall_subsys: LSM callback for subsys_initcall() setup, optional
  * @initcall_fs: LSM callback for fs_initcall setup, optional
- * @nitcall_device: LSM callback for device_initcall() setup, optional
+ * @initcall_device: LSM callback for device_initcall() setup, optional
  * @initcall_late: LSM callback for late_initcall() setup, optional
  */
 struct lsm_info {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] lsm: fix kernel-doc struct member names
  2025-12-14 20:15 [PATCH] lsm: fix kernel-doc struct member names Randy Dunlap
@ 2025-12-16  2:51 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2025-12-16  2:51 UTC (permalink / raw)
  To: Randy Dunlap, linux-kernel
  Cc: Randy Dunlap, James Morris, Serge E. Hallyn, linux-security-module

On Dec 14, 2025 Randy Dunlap <rdunlap@infradead.org> wrote:
> 
> Use the correct struct member names to avoid kernel-doc warnings:
> 
> Warning: include/linux/lsm_hooks.h:83 struct member 'name' not described
>  in 'lsm_id'
> Warning: include/linux/lsm_hooks.h:183 struct member 'initcall_device' not
>  described in 'lsm_info'
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---
> Cc: Paul Moore <paul@paul-moore.com>
> Cc: James Morris <jmorris@namei.org>
> Cc: "Serge E. Hallyn" <serge@hallyn.com>
> Cc: linux-security-module@vger.kernel.org
> ---
>  include/linux/lsm_hooks.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks Randy, merged into lsm/dev.

--
paul-moore.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-16  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-14 20:15 [PATCH] lsm: fix kernel-doc struct member names Randy Dunlap
2025-12-16  2:51 ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®