[PATCH 6/8] mm: don't include <linux/memremap.h> in <linux/mm.h>
Jason Gunthorpe
jgg at ziepe.ca
Mon Feb 7 19:35:08 UTC 2022
On Mon, Feb 07, 2022 at 07:32:47AM +0100, Christoph Hellwig 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.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> ---
> arch/arm64/mm/mmu.c | 1 +
> drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 1 +
> drivers/gpu/drm/drm_cache.c | 2 +-
> drivers/gpu/drm/nouveau/nouveau_dmem.c | 1 +
> drivers/gpu/drm/nouveau/nouveau_svm.c | 1 +
> drivers/infiniband/core/rw.c | 1 +
> drivers/nvdimm/pmem.h | 1 +
> drivers/nvme/host/pci.c | 1 +
> drivers/nvme/target/io-cmd-bdev.c | 1 +
> fs/fuse/virtio_fs.c | 1 +
> include/linux/memremap.h | 18 ++++++++++++++++++
> include/linux/mm.h | 20 --------------------
> lib/test_hmm.c | 1 +
> mm/memremap.c | 6 +++++-
> 14 files changed, 34 insertions(+), 22 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the dri-devel
mailing list