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

drm/radeon/cik: Move 'Move 'cik_sdma_*()'s prototypes to shared header

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

drivers/gpu/drm/radeon/cik_sdma.c:331:6: warning: no previous prototype for ‘cik_sdma_enable’ [-Wmissing-prototypes]
331 | void cik_sdma_enable(struct radeon_device *rdev, bool enable)
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/radeon/cik_sdma.c:528:5: warning: no previous prototype for ‘cik_sdma_resume’ [-Wmissing-prototypes]
528 | int cik_sdma_resume(struct radeon_device *rdev)
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/radeon/cik_sdma.c:557:6: warning: no previous prototype for ‘cik_sdma_fini’ [-Wmissing-prototypes]
557 | void cik_sdma_fini(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: Sumit Semwal <sumit.semwal@linaro.org>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-media@vger.kernel.org
Cc: linaro-mm-sig@lists.linaro.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
ea115610 5e7c91d2

+3 -3
-3
drivers/gpu/drm/radeon/cik.c
··· 129 129 MODULE_FIRMWARE("radeon/mullins_sdma.bin"); 130 130 131 131 static u32 cik_get_cu_active_bitmap(struct radeon_device *rdev, u32 se, u32 sh); 132 - extern int cik_sdma_resume(struct radeon_device *rdev); 133 - extern void cik_sdma_enable(struct radeon_device *rdev, bool enable); 134 - extern void cik_sdma_fini(struct radeon_device *rdev); 135 132 extern void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable); 136 133 static void cik_rlc_stop(struct radeon_device *rdev); 137 134 static void cik_pcie_gen3_enable(struct radeon_device *rdev);
+3
drivers/gpu/drm/radeon/cik.h
··· 34 34 u32 cik_get_csb_size(struct radeon_device *rdev); 35 35 void cik_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer); 36 36 37 + int cik_sdma_resume(struct radeon_device *rdev); 38 + void cik_sdma_enable(struct radeon_device *rdev, bool enable); 39 + void cik_sdma_fini(struct radeon_device *rdev); 37 40 #endif /* __CIK_H__ */