[PATCH 6/8] mm: don't include <linux/memremap.h> in <linux/mm.h>
Dan Williams
dan.j.williams at intel.com
Tue Feb 8 23:53:14 UTC 2022
On Mon, Feb 7, 2022 at 3:49 PM Dan Williams <dan.j.williams at intel.com> wrote:
>
> On Sun, Feb 6, 2022 at 10:33 PM Christoph Hellwig <hch at lst.de> wrote:
> >
> > Move the check for the actual pgmap types that need the free at refcount
> > one behavior into the out of line helper, and thus avoid the need to
> > pull memremap.h into mm.h.
>
> Looks good to me assuming the compile bots agree.
>
> Reviewed-by: Dan Williams <dan.j.williams at intel.com>
Yeah, same as Logan:
mm/memcontrol.c: In function ‘get_mctgt_type’:
mm/memcontrol.c:5724:29: error: implicit declaration of function
‘is_device_private_page’; did you mean
‘is_device_private_entry’? [-Werror=implicit-function-declaration]
5724 | if (is_device_private_page(page))
| ^~~~~~~~~~~~~~~~~~~~~~
| is_device_private_entry
...needs:
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index d1e97a54ae53..0ac7515c85f9 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -62,6 +62,7 @@
#include <linux/tracehook.h>
#include <linux/psi.h>
#include <linux/seq_buf.h>
+#include <linux/memremap.h>
#include "internal.h"
#include <net/sock.h>
#include <net/ip.h>
More information about the amd-gfx
mailing list