Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lee Jones and committed by
Alex Deucher
0a999f7d f47a9d09

+2 -2
+1
drivers/gpu/drm/radeon/cik.h
··· 29 29 void cik_exit_rlc_safe_mode(struct radeon_device *rdev); 30 30 int ci_mc_load_microcode(struct radeon_device *rdev); 31 31 void cik_update_cg(struct radeon_device *rdev, u32 block, bool enable); 32 + u32 cik_gpu_check_soft_reset(struct radeon_device *rdev); 32 33 33 34 #endif /* __CIK_H__ */
+1 -2
drivers/gpu/drm/radeon/cik_sdma.c
··· 27 27 #include "radeon_ucode.h" 28 28 #include "radeon_asic.h" 29 29 #include "radeon_trace.h" 30 + #include "cik.h" 30 31 #include "cikd.h" 31 32 32 33 /* sdma */ 33 34 #define CIK_SDMA_UCODE_SIZE 1050 34 35 #define CIK_SDMA_UCODE_VERSION 64 35 - 36 - u32 cik_gpu_check_soft_reset(struct radeon_device *rdev); 37 36 38 37 /* 39 38 * sDMA - System DMA