kernel/auditsc.c: fix warning
PATCH 3/3 kernel/auditsc.c: fix warning
From: Andrew Morton <[email protected]>
kernel/auditsc.c:745: warning: 'audit_set_auditable' defined but not used
Reported-by Rakib Mullick <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Al Viro <[email protected]>
Cc Eric Paris <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
kernel/auditsc.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
kernel/auditsc.c renamed from kernel/auditsc.c~kernel-auditscc-fix-warning +9 -8
@@ -364,6 +364,15 @@ static int grow_tree_refs(struct audit_c ctx->tree_count =31 ;return 1 ; } + +static void audit_set_auditable (struct audit_context *ctx) +{ +if (!ctx->prio) { + ctx->prio =1 ; + ctx->current_state =AUDIT_RECORD_CONTEXT ; + } +} +#endif static void unroll_tree_refs(struct audit_context *ctx,
@@ -741,14 +750,6 @@ void audit_filter_inodes(struct task_strrcu_read_unlock (); } -static void audit_set_auditable (struct audit_context *ctx) -{ -if (!ctx->prio) { - ctx->prio =1 ; - ctx->current_state =AUDIT_RECORD_CONTEXT ; - } -} -static inline struct audit_context *audit_get_context (struct task_struct *tsk,int return_valid,int return_code)
_