summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-03-14 21:48:20 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-03-20 21:29:40 -0400
commit66b3fad3f4c535c92b6a1184d535a97d6aa5d82a (patch)
treee0ac7f847b760b9e8b9777df27cd1581099935a2
parent9fcf03d0d6e845ed495fc8b1ec328b473ff298b3 (diff)
downloadtalos-obmc-linux-66b3fad3f4c535c92b6a1184d535a97d6aa5d82a.tar.gz
talos-obmc-linux-66b3fad3f4c535c92b6a1184d535a97d6aa5d82a.zip
constify path argument of audit_log_d_path()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--include/linux/audit.h2
-rw-r--r--kernel/audit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 9ff7a2c48b50..ed3ef1972496 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -684,7 +684,7 @@ extern void audit_log_untrustedstring(struct audit_buffer *ab,
const char *string);
extern void audit_log_d_path(struct audit_buffer *ab,
const char *prefix,
- struct path *path);
+ const struct path *path);
extern void audit_log_key(struct audit_buffer *ab,
char *key);
extern void audit_log_lost(const char *message);
diff --git a/kernel/audit.c b/kernel/audit.c
index bb0eb5bb9a0a..1c7f2c61416b 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1418,7 +1418,7 @@ void audit_log_untrustedstring(struct audit_buffer *ab, const char *string)
/* This is a helper-function to print the escaped d_path */
void audit_log_d_path(struct audit_buffer *ab, const char *prefix,
- struct path *path)
+ const struct path *path)
{
char *p, *pathname;
OpenPOWER on IntegriCloud