Skip to contentSkip to conversation

seccomp: document the "filter_count" field

PATCH Applied Randy Dunlap 2 participants 2 messages Dec 2, 2022 Secure computing

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 seccomp: document the "filter_count" field

Add missing kernel-doc for the 'filter_count' field in struct seccomp.

seccomp.h:40: warning: Function parameter or member 'filter_count' not described in 'seccomp'

Fixes c818c03b661c ("seccomp: Report number of loaded filters in /proc/$pid/status")
Cc Kees Cook <[email protected]>
---
 include/linux/seccomp.h |    1 +
 1 file changed, 1 insertion(+)
include/linux/seccomp.h +1 -0
diff -- a/include/linux/seccomp.h b/include/linux/seccomp.h
@@ -27,6 +27,7 @@ struct seccomp_filter;
  *
  * @mode:  indicates one of the valid values above for controlled
  *         system calls available to a process.
+ * @filter_count: number of seccomp filters
  * @filter: must always point to a valid seccomp-filter or NULL as it is
  *          accessed without locking during system call entry.
  *
Applied
#1 lore raw
Quoted 5 lines · Randy Dunlap

Add missing kernel-doc for the 'filter_count' field in struct seccomp.

seccomp.h:40: warning: Function parameter or member 'filter_count' not described in 'seccomp'

Applied to for-next/seccomp, thanks!

[1/1] seccomp: document the "filter_count" field

      https://git.kernel.org/kees/c/b9069728a70c
Signature · 1 line
Kees Cook