projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
def12ec
)
fsnotify: make dnotify_fsnotify_ops const
author
Bhumika Goyal
<bhumirks@gmail.com>
Wed, 30 Aug 2017 12:39:02 +0000
(18:09 +0530)
committer
Jan Kara
<jack@suse.cz>
Wed, 30 Aug 2017 14:02:48 +0000
(16:02 +0200)
Make this const as it is never modified.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/dnotify/dnotify.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/notify/dnotify/dnotify.c
b/fs/notify/dnotify/dnotify.c
index 2430a0415995d9e8d056b2c24eda8b749a79998f..cba32831592952b750ebea310b002c7a27b5cb6e 100644
(file)
--- a/
fs/notify/dnotify/dnotify.c
+++ b/
fs/notify/dnotify/dnotify.c
@@
-133,7
+133,7
@@
static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)
kmem_cache_free(dnotify_mark_cache, dn_mark);
}
-static struct fsnotify_ops dnotify_fsnotify_ops = {
+static
const
struct fsnotify_ops dnotify_fsnotify_ops = {
.handle_event = dnotify_handle_event,
.free_mark = dnotify_free_mark,
};