summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-09-25 14:57:42 +0000
committerMiklos Szeredi <mszeredi@redhat.com>2018-09-25 20:41:23 +0200
commit69383c5913a5d74b4aa7e2b78a5cf14ebfbba538 (patch)
treed1ecafee08f98f6d7332b9ae331a8e06a62689f2 /fs
parenta725356b6659469d182d662f22d770d83d3bc7b5 (diff)
downloadlinux-69383c5913a5d74b4aa7e2b78a5cf14ebfbba538.tar.bz2
ovl: make symbol 'ovl_aops' static
Fixes the following sparse warning: fs/overlayfs/inode.c:507:39: warning: symbol 'ovl_aops' was not declared. Should it be static? Fixes: 5b910bd615ba ("ovl: fix GPF in swapfile_activate of file from overlayfs over xfs") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/overlayfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/inode.c b/fs/overlayfs/inode.c
index b6ac545b5a32..3b7ed5d2279c 100644
--- a/fs/overlayfs/inode.c
+++ b/fs/overlayfs/inode.c
@@ -504,7 +504,7 @@ static const struct inode_operations ovl_special_inode_operations = {
.update_time = ovl_update_time,
};
-const struct address_space_operations ovl_aops = {
+static const struct address_space_operations ovl_aops = {
/* For O_DIRECT dentry_open() checks f_mapping->a_ops->direct_IO */
.direct_IO = noop_direct_IO,
};