Skip to contentSkip to conversation

mm: include <linux/ramfs.h> for generic_file_vm_ops definition

PATCH New Ben Dooks 1 participant 1 message Oct 8, 2019

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 mm: include <linux/ramfs.h> for generic_file_vm_ops definition

The generic_file_vm_ops is defined in <linux/ramfs.h> so include it to fix the following warning:

mm/filemap.c:2717:35: warning: symbol 'generic_file_vm_ops' was not declared. Should it be static?

---
 mm/filemap.c | 1 +
 1 file changed, 1 insertion(+)
mm/filemap.c +1 -0
index 1146fcfa3215..85b7d087eb45 100644
@@ -40,6 +40,7 @@
 #include <linux/rmap.h>
 #include <linux/delayacct.h>
 #include <linux/psi.h>
+#include <linux/ramfs.h>
 #include "internal.h"
 
 #define CREATE_TRACE_POINTS
Signature · 1 line
2.23.0