Skip to contentSkip to conversation

drm: use set_memory.h header

PATCH New [email protected] 1 participant 1 message May 8, 2017

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 74/114 drm: use set_memory.h header

From: Laura Abbott <[email protected]>
Subject: drm: use set_memory.h header

set_memory_* functions have moved to set_memory.h. Switch to this explicitly.

[[email protected]: track drivers/gpu/drm/i915/i915_gem_gtt.c linux-next changes]

---

 drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c |    3 +++
 drivers/gpu/drm/gma500/gtt.c             |    1 +
 drivers/gpu/drm/gma500/psb_drv.c         |    1 +
 drivers/gpu/drm/i915/i915_gem_gtt.c      |    2 ++
 drivers/gpu/drm/radeon/radeon_gart.c     |    3 +++
 drivers/gpu/drm/ttm/ttm_page_alloc.c     |    3 +++
 drivers/gpu/drm/ttm/ttm_page_alloc_dma.c |    3 +++
 drivers/gpu/drm/ttm/ttm_tt.c             |    3 +++
 8 files changed, 19 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c renamed from drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c~drm-use-set_memoryh-header +3 -0
diff -puN drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c~drm-use-set_memoryh-header drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
@@ -27,6 +27,9 @@
  */
 #include <drm/drmP.h>
 #include <drm/amdgpu_drm.h>
+#ifdef CONFIG_X86
+#include <asm/set_memory.h>
+#endif
 #include "amdgpu.h"
 
 /*
drivers/gpu/drm/gma500/gtt.c renamed from drivers/gpu/drm/gma500/gtt.c~drm-use-set_memoryh-header +1 -0
diff -puN drivers/gpu/drm/gma500/gtt.c~drm-use-set_memoryh-header drivers/gpu/drm/gma500/gtt.c
@@ -21,6 +21,7 @@
 
 #include <drm/drmP.h>
 #include <linux/shmem_fs.h>
+#include <asm/set_memory.h>
 #include "psb_drv.h"
 #include "blitter.h"
 
drivers/gpu/drm/gma500/psb_drv.c renamed from drivers/gpu/drm/gma500/psb_drv.c~drm-use-set_memoryh-header +1 -0
diff -puN drivers/gpu/drm/gma500/psb_drv.c~drm-use-set_memoryh-header drivers/gpu/drm/gma500/psb_drv.c
@@ -35,6 +35,7 @@
 #include <linux/pm_runtime.h>
 #include <acpi/video.h>
 #include <linux/module.h>
+#include <asm/set_memory.h>
 
 static struct drm_driver driver;
 static int psb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
drivers/gpu/drm/i915/i915_gem_gtt.c renamed from drivers/gpu/drm/i915/i915_gem_gtt.c~drm-use-set_memoryh-header +2 -0
diff -puN drivers/gpu/drm/i915/i915_gem_gtt.c~drm-use-set_memoryh-header drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -31,6 +31,8 @@
 #include <linux/seq_file.h>
 #include <linux/stop_machine.h>
 
+#include <asm/set_memory.h>
+
 #include <drm/drmP.h>
 #include <drm/i915_drm.h>
 
drivers/gpu/drm/radeon/radeon_gart.c renamed from drivers/gpu/drm/radeon/radeon_gart.c~drm-use-set_memoryh-header +3 -0
diff -puN drivers/gpu/drm/radeon/radeon_gart.c~drm-use-set_memoryh-header drivers/gpu/drm/radeon/radeon_gart.c
@@ -27,6 +27,9 @@
  */
 #include <drm/drmP.h>
 #include <drm/radeon_drm.h>
+#ifdef CONFIG_X86
+#include <asm/set_memory.h>
+#endif
 #include "radeon.h"
 
 /*
drivers/gpu/drm/ttm/ttm_page_alloc.c renamed from drivers/gpu/drm/ttm/ttm_page_alloc.c~drm-use-set_memoryh-header +3 -0
diff -puN drivers/gpu/drm/ttm/ttm_page_alloc.c~drm-use-set_memoryh-header drivers/gpu/drm/ttm/ttm_page_alloc.c
@@ -51,6 +51,9 @@
 #if IS_ENABLED(CONFIG_AGP)
 #include <asm/agp.h>
 #endif
+#ifdef CONFIG_X86
+#include <asm/set_memory.h>
+#endif
 
 #define NUM_PAGES_TO_ALLOC		(PAGE_SIZE/sizeof(struct page *))
 #define SMALL_ALLOCATION		16
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c renamed from drivers/gpu/drm/ttm/ttm_page_alloc_dma.c~drm-use-set_memoryh-header +3 -0
diff -puN drivers/gpu/drm/ttm/ttm_page_alloc_dma.c~drm-use-set_memoryh-header drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
@@ -53,6 +53,9 @@
 #if IS_ENABLED(CONFIG_AGP)
 #include <asm/agp.h>
 #endif
+#ifdef CONFIG_X86
+#include <asm/set_memory.h>
+#endif
 
 #define NUM_PAGES_TO_ALLOC		(PAGE_SIZE/sizeof(struct page *))
 #define SMALL_ALLOCATION		4
drivers/gpu/drm/ttm/ttm_tt.c renamed from drivers/gpu/drm/ttm/ttm_tt.c~drm-use-set_memoryh-header +3 -0
diff -puN drivers/gpu/drm/ttm/ttm_tt.c~drm-use-set_memoryh-header drivers/gpu/drm/ttm/ttm_tt.c
@@ -44,6 +44,9 @@
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 #include <drm/ttm/ttm_page_alloc.h>
+#ifdef CONFIG_X86
+#include <asm/set_memory.h>
+#endif
 
 /**
  * Allocates storage for pointers to the pages that back the ttm.

_