Skip to content

Commit ec62e95

Browse files
Colin Ian Kinghubcapsc
authored andcommitted
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 <[email protected]> Signed-off-by: Mike Marshall <[email protected]>
1 parent 9f8fd53 commit ec62e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/orangefs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ static int orangefs_fault(struct vm_fault *vmf)
544544
return filemap_fault(vmf);
545545
}
546546

547-
const struct vm_operations_struct orangefs_file_vm_ops = {
547+
static const struct vm_operations_struct orangefs_file_vm_ops = {
548548
.fault = orangefs_fault,
549549
.map_pages = filemap_map_pages,
550550
.page_mkwrite = filemap_page_mkwrite,

0 commit comments

Comments
 (0)