audit: audit_set_auditable defined but not used
authorEric Paris <eparis@redhat.com>
Mon, 26 Jan 2009 23:09:45 +0000 (18:09 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 Apr 2009 17:48:52 +0000 (13:48 -0400)
commit679173b724631f49e537a15fa48ea2000bdc1808
treef5211fea378788dab49654e15916f6ba73faa4b4
parent318b6d3d7ddbcad3d6867e630711b8a705d873d7
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>
kernel/auditsc.c