audit: audit_set_auditable defined but not used

after 0590b9335a1c72a3f0defcc6231287f7817e07c8 audit_set_auditable() is now only
used by the audit tree code. If CONFIG_AUDIT_TREE is unset it will be defined
but unused. This patch simply moves the function inside a CONFIG_AUDIT_TREE
block.

cc1: warnings being treated as errors
/home/acme_unencrypted/git/linux-2.6-tip/kernel/auditsc.c:745: error: ‘audit_set_auditable’ defined but not used
make[2]: *** [kernel/auditsc.o] Error 1
make[1]: *** [kernel] Error 2
make[1]: *** Waiting for unfinished jobs....

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by Eric Paris and committed by Al Viro 679173b7 318b6d3d

+8 -8
+8 -8
kernel/auditsc.c
··· 329 */ 330 331 #ifdef CONFIG_AUDIT_TREE 332 static int put_tree_ref(struct audit_context *ctx, struct audit_chunk *chunk) 333 { 334 struct audit_tree_refs *p = ctx->trees; ··· 748 } 749 } 750 rcu_read_unlock(); 751 - } 752 - 753 - static void audit_set_auditable(struct audit_context *ctx) 754 - { 755 - if (!ctx->prio) { 756 - ctx->prio = 1; 757 - ctx->current_state = AUDIT_RECORD_CONTEXT; 758 - } 759 } 760 761 static inline struct audit_context *audit_get_context(struct task_struct *tsk,
··· 329 */ 330 331 #ifdef CONFIG_AUDIT_TREE 332 + static void audit_set_auditable(struct audit_context *ctx) 333 + { 334 + if (!ctx->prio) { 335 + ctx->prio = 1; 336 + ctx->current_state = AUDIT_RECORD_CONTEXT; 337 + } 338 + } 339 + 340 static int put_tree_ref(struct audit_context *ctx, struct audit_chunk *chunk) 341 { 342 struct audit_tree_refs *p = ctx->trees; ··· 740 } 741 } 742 rcu_read_unlock(); 743 } 744 745 static inline struct audit_context *audit_get_context(struct task_struct *tsk,