* [PATCH] mm: include <linux/ramfs.h> for generic_file_vm_ops definition
@ 2019-10-08 10:23 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2019-10-08 10:23 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-mm, linux-kernel, Ben Dooks
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?
Signed-off0-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
mm/filemap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/filemap.c b/mm/filemap.c
index 1146fcfa3215..85b7d087eb45 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -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
--
2.23.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-08 10:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 10:23 [PATCH] mm: include <linux/ramfs.h> for generic_file_vm_ops definition Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox