Commit 0a999f7d authored by Lee Jones's avatar Lee Jones Committed by Alex Deucher

drm/radeon/cik_sdma: Move 'amdgpu_cik_gpu_check_soft_reset()'s prototype to shared header

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/radeon/cik.c:4845:5: warning: no previous prototype for ‘cik_gpu_check_soft_reset’ [-Wmissing-prototypes]
 4845 | u32 cik_gpu_check_soft_reset(struct radeon_device *rdev)
 | ^~~~~~~~~~~~~~~~~~~~~~~~

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f47a9d09
...@@ -29,5 +29,6 @@ void cik_enter_rlc_safe_mode(struct radeon_device *rdev); ...@@ -29,5 +29,6 @@ void cik_enter_rlc_safe_mode(struct radeon_device *rdev);
void cik_exit_rlc_safe_mode(struct radeon_device *rdev); void cik_exit_rlc_safe_mode(struct radeon_device *rdev);
int ci_mc_load_microcode(struct radeon_device *rdev); int ci_mc_load_microcode(struct radeon_device *rdev);
void cik_update_cg(struct radeon_device *rdev, u32 block, bool enable); void cik_update_cg(struct radeon_device *rdev, u32 block, bool enable);
u32 cik_gpu_check_soft_reset(struct radeon_device *rdev);
#endif /* __CIK_H__ */ #endif /* __CIK_H__ */
...@@ -27,14 +27,13 @@ ...@@ -27,14 +27,13 @@
#include "radeon_ucode.h" #include "radeon_ucode.h"
#include "radeon_asic.h" #include "radeon_asic.h"
#include "radeon_trace.h" #include "radeon_trace.h"
#include "cik.h"
#include "cikd.h" #include "cikd.h"
/* sdma */ /* sdma */
#define CIK_SDMA_UCODE_SIZE 1050 #define CIK_SDMA_UCODE_SIZE 1050
#define CIK_SDMA_UCODE_VERSION 64 #define CIK_SDMA_UCODE_VERSION 64
u32 cik_gpu_check_soft_reset(struct radeon_device *rdev);
/* /*
* sDMA - System DMA * sDMA - System DMA
* Starting with CIK, the GPU has new asynchronous * Starting with CIK, the GPU has new asynchronous
......
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