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

drm/radeon/si_dma: Move 'si_gpu_check_soft_reset()'s prototype to shared header

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

drivers/gpu/drm/radeon/si.c:3768:5: warning: no previous prototype for ‘si_gpu_check_soft_reset’ [-Wmissing-prototypes]
3768 | u32 si_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
d339e965 d93a3c27

+2 -2
+1
drivers/gpu/drm/radeon/si.h
··· 27 27 struct radeon_device; 28 28 29 29 int si_mc_load_microcode(struct radeon_device *rdev); 30 + u32 si_gpu_check_soft_reset(struct radeon_device *rdev); 30 31 31 32 #endif /* __SI_H__ */
+1 -2
drivers/gpu/drm/radeon/si_dma.c
··· 25 25 #include "radeon.h" 26 26 #include "radeon_asic.h" 27 27 #include "radeon_trace.h" 28 + #include "si.h" 28 29 #include "sid.h" 29 - 30 - u32 si_gpu_check_soft_reset(struct radeon_device *rdev); 31 30 32 31 /** 33 32 * si_dma_is_lockup - Check if the DMA engine is locked up