Skip to contentSkip to conversation

orangefs: make struct orangefs_file_vm_ops static

PATCH New Colin King 1 participant 1 message Apr 5, 2018

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 orangefs: make struct orangefs_file_vm_ops static

From: Colin Ian King <[email protected]>

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?

---
 fs/orangefs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/orangefs/file.c +1 -1
index 26358efbf794..84f44365bfb3 100644
@@ -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,
Signature · 1 line
2.15.1