drm/amd: drop use of drmP.h in amdgpu.h
authorSam Ravnborg <sam@ravnborg.org>
Sun, 9 Jun 2019 22:07:51 +0000 (00:07 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 10 Jun 2019 20:59:53 +0000 (22:59 +0200)
Delete the unused drmP.h from amdgpu.h.
Fix fallout in various files.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "David (ChunMing) Zhou" <David1.Zhou@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190609220757.10862-5-sam@ravnborg.org
19 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/iceland_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c

index 14398f55f602f2454547c5fe3d50e680fe50647b..fbec83bfb4ad326663e95bab2f6da82d4479572f 100644 (file)
@@ -44,9 +44,9 @@
 #include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_execbuf_util.h>
 
-#include <drm/drmP.h>
-#include <drm/drm_gem.h>
 #include <drm/amdgpu_drm.h>
+#include <drm/drm_gem.h>
+#include <drm/drm_ioctl.h>
 #include <drm/gpu_scheduler.h>
 
 #include <kgd_kfd_interface.h>
index 22bd21efe6b1edf26f2b7f68a82e864e307208ac..4fea7f835506c9d5f2c3d87952699272d6347e38 100644 (file)
@@ -24,6 +24,8 @@
 #include <linux/debugfs.h>
 #include <linux/list.h>
 #include <linux/module.h>
+#include <linux/uaccess.h>
+
 #include "amdgpu.h"
 #include "amdgpu_ras.h"
 #include "amdgpu_atomfirmware.h"
index 639297250c210ce5bd9dffaa1ba4a910b1cb8417..c799691dfa848ced431fb9082bafef61aa93facc 100644 (file)
  */
 
 #include <linux/fdtable.h>
+#include <linux/file.h>
 #include <linux/pid.h>
+
 #include <drm/amdgpu_drm.h>
+
 #include "amdgpu.h"
 
 #include "amdgpu_vm.h"
index 7d484fad3909015d956125995be9ff535450ea70..01f88269a7f91a09559d49479b96f1499e75f252 100644 (file)
  *
  */
 
+#include <linux/module.h>
+
+#include <drm/drm_drv.h>
+
 #include "amdgpu.h"
 
 bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev)
index 4f761ebb655eeb97e57ee08df3ff6be4dfa76b81..91f10995249b8768588d7d622f8ae91cd8d21a2a 100644 (file)
@@ -21,6 +21,8 @@
  *
  */
 #include <linux/firmware.h>
+#include <linux/module.h>
+
 #include "amdgpu.h"
 #include "amdgpu_ih.h"
 #include "amdgpu_gfx.h"
index 3b7370d914a53ab8a5c93aa3b0d82403d3730092..51bbf773b4f5ba356dc8768b889be8b1e952fa20 100644 (file)
  * OTHER DEALINGS IN THE SOFTWARE.
  *
  */
+
 #include <linux/firmware.h>
+#include <linux/pci.h>
+
 #include <drm/drm_cache.h>
+
 #include "amdgpu.h"
 #include "gmc_v9_0.h"
 #include "amdgpu_atomfirmware.h"
index 77c2bc344dfc5f5271527c8424732d3ef7f95b88..ce1ea31feee09bf58ff125435970a795fe4efeae 100644 (file)
@@ -24,6 +24,9 @@
  */
 
 #include <linux/firmware.h>
+#include <linux/module.h>
+#include <linux/pci.h>
+
 #include "amdgpu.h"
 #include "amdgpu_psp.h"
 #include "amdgpu_ucode.h"
index b91df7bd1d98e56350246f66c11029294bf40978..b1e7aca7257832acacad9543f4815764ee46b9dd 100644 (file)
@@ -21,6 +21,8 @@
  */
 
 #include <linux/firmware.h>
+#include <linux/module.h>
+
 #include "amdgpu.h"
 #include "amdgpu_psp.h"
 #include "amdgpu_ucode.h"
index a10e3a50d9ef7cac2735347bf929580cc74ed945..bc67e65027334f3b4b0632892be863ae728281c4 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <drm/drm_crtc.h>
+#include <drm/drm_vblank.h>
 
 #include "amdgpu.h"
 #include "amdgpu_dm.h"
index 1d5fc5ad3beea383ef2c8d469ee5793c860c503c..e611b5376d8cee30a803e4362221aba095effea5 100644 (file)
@@ -23,7 +23,9 @@
  *
  */
 
-#include <linux/debugfs.h>
+#include <linux/uaccess.h>
+
+#include <drm/drm_debugfs.h>
 
 #include "dc.h"
 #include "amdgpu.h"
index 048757e8f49493c46edec495874891b1cd4073cf..8f81c25c523d03726bc9699b0ddcc3275575f551 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/delay.h>
 #include <linux/fb.h>
 #include <linux/module.h>
+#include <linux/pci.h>
 #include <linux/slab.h>
 #include <asm/div64.h>
 #include <drm/amdgpu_drm.h>
index 384c37875cd0a2e261caf63ed905532c3e608324..8e05c14d2d0db2c35c5f431fca3a93240632134a 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/delay.h>
 #include <linux/fb.h>
 #include <linux/module.h>
+#include <linux/pci.h>
 #include <linux/slab.h>
 
 #include "hwmgr.h"
index b6767d74dc852aca70b10ab88052959f0a02c20c..b12100de308483745b42dee12b0f076c01ca6e70 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 #include <linux/module.h>
+#include <linux/pci.h>
 #include <linux/slab.h>
 #include <linux/fb.h>
 
index 669bd0c2a16c6ca6b936c93f009e7d447c322c33..46858b901d058931de9bbf2751637eadd3c4b361 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/fb.h>
 #include "linux/delay.h"
 #include <linux/types.h>
+#include <linux/pci.h>
 
 #include "smumgr.h"
 #include "pp_debug.h"
index 375ccf6ff5f2e257d9e852f3f2f667bdfa6c8ba9..0eee7b2f8b9a9c9eac9b5265acc0b224e51600a9 100644 (file)
@@ -25,6 +25,7 @@
 #include "pp_debug.h"
 #include <linux/types.h>
 #include <linux/kernel.h>
+#include <linux/pci.h>
 #include <linux/slab.h>
 #include <linux/gfp.h>
 
index 2d4cfe14f72e03353c84aad2835a41ed91d85f44..477c1c870591c214a05d283ef995b0409bef3084 100644 (file)
@@ -21,6 +21,8 @@
  *
  */
 
+#include <linux/pci.h>
+
 #include "pp_debug.h"
 #include "smumgr.h"
 #include "smu74.h"
index 6d11076a79ba90d254deba415b48c6cc6eff9da9..d409925d1f7da9185c579d040c42749a19d5ce59 100644 (file)
@@ -21,6 +21,8 @@
  *
  */
 
+#include <linux/pci.h>
+
 #include "smumgr.h"
 #include "smu10_inc.h"
 #include "soc15_common.h"
index 3ed6c5f1e5cfca309d3c9ef22582c23fb7570165..8f6f2808094aef5bc916d2d86cf1ba67cb7de7fa 100644 (file)
@@ -23,6 +23,7 @@
 #include "pp_debug.h"
 #include <linux/types.h>
 #include <linux/kernel.h>
+#include <linux/pci.h>
 #include <linux/slab.h>
 #include <linux/gfp.h>
 
index c81acc3192ad2acc3b98bdfe6308f1a942862b5c..672986e9eecbb486bb26162bda20be24c20c3f1a 100644 (file)
@@ -21,6 +21,8 @@
  *
  */
 
+#include <linux/pci.h>
+
 #include "smumgr.h"
 #include "vega10_inc.h"
 #include "soc15_common.h"