summaryrefslogtreecommitdiffstats
path: root/kernel/audit_watch.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-10-21 02:23:50 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2010-10-30 07:42:19 +0200
commitb8800aa5d9c7e4e2869321c77b80f322a0d9663a (patch)
tree27bda6447f0b2ab2eec7beafcef090da489222fa /kernel/audit_watch.c
parentAudit: add support to match lsm labels on user audit messages (diff)
downloadlinux-b8800aa5d9c7e4e2869321c77b80f322a0d9663a.tar.xz
linux-b8800aa5d9c7e4e2869321c77b80f322a0d9663a.zip
audit: make functions static
I was doing some namespace checks and found some simple stuff in audit that could be cleaned up. Make some functions static, and put const on make_reply payload arg. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r--kernel/audit_watch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index f0c9b2e7542d..d2e3c7866460 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -60,7 +60,7 @@ struct audit_parent {
};
/* fsnotify handle. */
-struct fsnotify_group *audit_watch_group;
+static struct fsnotify_group *audit_watch_group;
/* fsnotify events we care about. */
#define AUDIT_FS_WATCH (FS_MOVE | FS_CREATE | FS_DELETE | FS_DELETE_SELF |\
@@ -123,7 +123,7 @@ void audit_put_watch(struct audit_watch *watch)
}
}
-void audit_remove_watch(struct audit_watch *watch)
+static void audit_remove_watch(struct audit_watch *watch)
{
list_del(&watch->wlist);
audit_put_parent(watch->parent);