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

drm/radeon/evergreen_dma: Move 'evergreen_gpu_check_soft_reset()'s prototype to shared header

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

drivers/gpu/drm/radeon/evergreen.c:3825:5: warning: no previous prototype for ‘evergreen_gpu_check_soft_reset’ [-Wmissing-prototypes]
3825 | u32 evergreen_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
6a86ecde eb388a88

+2 -2
+1
drivers/gpu/drm/radeon/evergreen.h
··· 45 45 void evergreen_gpu_pci_config_reset(struct radeon_device *rdev); 46 46 u32 evergreen_get_number_of_dram_channels(struct radeon_device *rdev); 47 47 void evergreen_print_gpu_status_regs(struct radeon_device *rdev); 48 + u32 evergreen_gpu_check_soft_reset(struct radeon_device *rdev); 48 49 49 50 #endif /* __RADEON_EVERGREEN_H__ */
+1 -2
drivers/gpu/drm/radeon/evergreen_dma.c
··· 24 24 25 25 #include "radeon.h" 26 26 #include "radeon_asic.h" 27 + #include "evergreen.h" 27 28 #include "evergreend.h" 28 - 29 - u32 evergreen_gpu_check_soft_reset(struct radeon_device *rdev); 30 29 31 30 /** 32 31 * evergreen_dma_fence_ring_emit - emit a fence on the DMA ring