Commit 730ff521 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Matthew Wilcox (Oracle)

mm: remove pointless includes from <linux/hmm.h>

hmm.h pulls in the world for no good reason at all.  Remove the
includes and push a few ones into the users instead.

Link: https://lkml.kernel.org/r/20220210072828.2930359-4-hch@lst.deSigned-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: default avatarMuchun Song <songmuchun@bytedance.com>
Tested-by: default avatar"Sierra Guiza, Alejandro (Alex)" <alex.sierra@amd.com>

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Christian Knig <christian.koenig@amd.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: Karol Herbst <kherbst@redhat.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Cc: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent 5c3f1f9c
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/hmm.h> #include <linux/hmm.h>
#include <linux/dma-direction.h> #include <linux/dma-direction.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/migrate.h>
#include "amdgpu_sync.h" #include "amdgpu_sync.h"
#include "amdgpu_object.h" #include "amdgpu_object.h"
#include "amdgpu_vm.h" #include "amdgpu_vm.h"
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/hmm.h> #include <linux/hmm.h>
#include <linux/migrate.h>
/* /*
* FIXME: this is ugly right now we are using TTM to allocate vram and we pin * FIXME: this is ugly right now we are using TTM to allocate vram and we pin
......
...@@ -9,14 +9,9 @@ ...@@ -9,14 +9,9 @@
#ifndef LINUX_HMM_H #ifndef LINUX_HMM_H
#define LINUX_HMM_H #define LINUX_HMM_H
#include <linux/kconfig.h> #include <linux/mm.h>
#include <linux/pgtable.h>
#include <linux/device.h> struct mmu_interval_notifier;
#include <linux/migrate.h>
#include <linux/memremap.h>
#include <linux/completion.h>
#include <linux/mmu_notifier.h>
/* /*
* On output: * On output:
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#include <linux/sched/mm.h> #include <linux/sched/mm.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/rmap.h> #include <linux/rmap.h>
#include <linux/mmu_notifier.h>
#include <linux/migrate.h>
#include "test_hmm_uapi.h" #include "test_hmm_uapi.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment