Skip to content

Commit

Permalink
mm/filemap.c: include <linux/ramfs.h> for generic_file_vm_ops definition
Browse files Browse the repository at this point in the history
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?

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ben Dooks <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
bjdooks-ct authored and torvalds committed Oct 19, 2019
1 parent 444f84f commit d0e6a58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0e6a58

Please sign in to comment.