diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-11-20 20:19:09 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-12-05 18:58:31 -0500 |
commit | 3cd5eca8d7a2fe43098df4c33a1272fe6945cac9 (patch) | |
tree | 413258b5b34912c079c2a6b032f59c69e319d4df /kernel/audit_watch.c | |
parent | 640eb7e7b5242af53c456552a526d0080e6333f8 (diff) |
fsnotify: constify 'data' passed to ->handle_event()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r-- | kernel/audit_watch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 0d302a87f21b..f476c46b9c20 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c | |||
@@ -472,10 +472,10 @@ static int audit_watch_handle_event(struct fsnotify_group *group, | |||
472 | struct inode *to_tell, | 472 | struct inode *to_tell, |
473 | struct fsnotify_mark *inode_mark, | 473 | struct fsnotify_mark *inode_mark, |
474 | struct fsnotify_mark *vfsmount_mark, | 474 | struct fsnotify_mark *vfsmount_mark, |
475 | u32 mask, void *data, int data_type, | 475 | u32 mask, const void *data, int data_type, |
476 | const unsigned char *dname, u32 cookie) | 476 | const unsigned char *dname, u32 cookie) |
477 | { | 477 | { |
478 | struct inode *inode; | 478 | const struct inode *inode; |
479 | struct audit_parent *parent; | 479 | struct audit_parent *parent; |
480 | 480 | ||
481 | parent = container_of(inode_mark, struct audit_parent, mark); | 481 | parent = container_of(inode_mark, struct audit_parent, mark); |
@@ -484,10 +484,10 @@ static int audit_watch_handle_event(struct fsnotify_group *group, | |||
484 | 484 | ||
485 | switch (data_type) { | 485 | switch (data_type) { |
486 | case (FSNOTIFY_EVENT_PATH): | 486 | case (FSNOTIFY_EVENT_PATH): |
487 | inode = d_backing_inode(((struct path *)data)->dentry); | 487 | inode = d_backing_inode(((const struct path *)data)->dentry); |
488 | break; | 488 | break; |
489 | case (FSNOTIFY_EVENT_INODE): | 489 | case (FSNOTIFY_EVENT_INODE): |
490 | inode = (struct inode *)data; | 490 | inode = (const struct inode *)data; |
491 | break; | 491 | break; |
492 | default: | 492 | default: |
493 | BUG(); | 493 | BUG(); |