]> www.infradead.org Git - users/hch/configfs.git/commitdiff
drm/amd: Make amd_ip_funcs static for SDMA v5.2
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Sun, 4 Aug 2024 13:56:28 +0000 (15:56 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 14:26:59 +0000 (10:26 -0400)
The struct can be static, as it is only used in this
translation unit.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.h

index 93890f83e270371bb1133500d76395744e7f4363..d740255edf5af106f0f52740af246dea0c7ef7c2 100644 (file)
@@ -1776,7 +1776,7 @@ static void sdma_v5_2_dump_ip_state(void *handle)
        amdgpu_gfx_off_ctrl(adev, true);
 }
 
-const struct amd_ip_funcs sdma_v5_2_ip_funcs = {
+static const struct amd_ip_funcs sdma_v5_2_ip_funcs = {
        .name = "sdma_v5_2",
        .early_init = sdma_v5_2_early_init,
        .late_init = NULL,
index b70414fef2a1b38043a842b0b077cb4e27f1d4fc..863145b3a77e42a4a451bd993eed80e0fa144f23 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef __SDMA_V5_2_H__
 #define __SDMA_V5_2_H__
 
-extern const struct amd_ip_funcs sdma_v5_2_ip_funcs;
 extern const struct amdgpu_ip_block_version sdma_v5_2_ip_block;
 
 #endif /* __SDMA_V5_2_H__ */