[AMD Public Use]

Reviewed-by: Guchun Chen <guchun.c...@amd.com>


Regards,
Guchun

-----Original Message-----
From: Stanley.Yang <stanley.y...@amd.com> 
Sent: Wednesday, March 11, 2020 2:38 PM
To: amd-gfx@lists.freedesktop.org
Cc: Zhang, Hawking <hawking.zh...@amd.com>; Chen, Guchun <guchun.c...@amd.com>; 
Li, Dennis <dennis...@amd.com>; Clements, John <john.cleme...@amd.com>; Yang, 
Stanley <stanley.y...@amd.com>
Subject: [PATCH] drm/amdgpu: use amdgpu_ras.h in amdgpu_debugfs.c

include amdgpu_ras.h head file instead of use extern ras_debugfs_create_all 
function

Signed-off-by: Stanley.Yang <stanley.y...@amd.com>
Change-Id: I2697250ba67d4deac4371fea05efb68a976f7e5a
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
index 1d513e4f9934..a9a278f87498 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
@@ -34,6 +34,7 @@
 #include "amdgpu.h"
 #include "amdgpu_pm.h"
 #include "amdgpu_dm_debugfs.h"
+#include "amdgpu_ras.h"
 
 /**
  * amdgpu_debugfs_add_files - Add simple debugfs entries @@ -1315,7 +1316,6 @@ 
DEFINE_SIMPLE_ATTRIBUTE(fops_ib_preempt, NULL,  
DEFINE_SIMPLE_ATTRIBUTE(fops_sclk_set, NULL,
                        amdgpu_debugfs_sclk_set, "%llu\n");
 
-extern void amdgpu_ras_debugfs_create_all(struct amdgpu_device *adev);  int 
amdgpu_debugfs_init(struct amdgpu_device *adev)  {
        int r, i;
--
2.17.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to