aboutsummaryrefslogtreecommitdiffstats
path: root/fs/orangefs/file.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-04-05 11:50:10 +0100
committerMike Marshall <hubcap@omnibond.com>2018-06-01 14:49:00 -0400
commitec62e95ae3f1c5bb23c7fba849fa306ad315ab10 (patch)
treef5f21f6f3cf8e4b013a93c7249c40d53cd669f7d /fs/orangefs/file.c
parentorangefs: revamp block sizes (diff)
downloadlinux-dev-ec62e95ae3f1c5bb23c7fba849fa306ad315ab10.tar.xz
linux-dev-ec62e95ae3f1c5bb23c7fba849fa306ad315ab10.zip
orangefs: make struct orangefs_file_vm_ops static
The struct orangefs_file_vm_ops is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: fs/orangefs/file.c:547:35: warning: symbol 'orangefs_file_vm_ops' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/file.c')
-rw-r--r--fs/orangefs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c
index 26358efbf794..84f44365bfb3 100644
--- a/fs/orangefs/file.c
+++ b/fs/orangefs/file.c
@@ -544,7 +544,7 @@ static int orangefs_fault(struct vm_fault *vmf)
return filemap_fault(vmf);
}
-const struct vm_operations_struct orangefs_file_vm_ops = {
+static const struct vm_operations_struct orangefs_file_vm_ops = {
.fault = orangefs_fault,
.map_pages = filemap_map_pages,
.page_mkwrite = filemap_page_mkwrite,