mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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>
This commit is contained in:
parent
9f8fd53cd0
commit
ec62e95ae3
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ static int orangefs_fault(struct vm_fault *vmf)
|
||||||
return filemap_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,
|
.fault = orangefs_fault,
|
||||||
.map_pages = filemap_map_pages,
|
.map_pages = filemap_map_pages,
|
||||||
.page_mkwrite = filemap_page_mkwrite,
|
.page_mkwrite = filemap_page_mkwrite,
|
||||||
|
|
Loading…
Reference in a new issue