Skip to content

Commit 0fb0624

Browse files
rddunlapkees
authored andcommitted
seccomp: fix kernel-doc function name warning
Move the ACTION_ONLY() macro so that it is not between the kernel-doc notation and the function definition for seccomp_run_filters(), eliminating a kernel-doc warning: kernel/seccomp.c:400: warning: expecting prototype for seccomp_run_filters(). Prototype was for ACTION_ONLY() instead Signed-off-by: Randy Dunlap <[email protected]> Cc: Kees Cook <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Will Drewry <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 88603b6 commit 0fb0624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/seccomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilte
388388
}
389389
#endif /* SECCOMP_ARCH_NATIVE */
390390

391+
#define ACTION_ONLY(ret) ((s32)((ret) & (SECCOMP_RET_ACTION_FULL)))
391392
/**
392393
* seccomp_run_filters - evaluates all seccomp filters against @sd
393394
* @sd: optional seccomp data to be passed to filters
@@ -397,7 +398,6 @@ static inline bool seccomp_cache_check_allow(const struct seccomp_filter *sfilte
397398
*
398399
* Returns valid seccomp BPF response codes.
399400
*/
400-
#define ACTION_ONLY(ret) ((s32)((ret) & (SECCOMP_RET_ACTION_FULL)))
401401
static u32 seccomp_run_filters(const struct seccomp_data *sd,
402402
struct seccomp_filter **match)
403403
{

0 commit comments

Comments
 (0)