diff options
author | Tobias Jakobi <tjakobi@math.uni-bielefeld.de> | 2024-08-04 15:56:27 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-08-13 16:26:53 +0200 |
commit | 9a12b1c7a0595736d398b24712dc1ce79072662e (patch) | |
tree | 3b528b315516d49c33e6e0f85330ab15c5e9deb1 | |
parent | drm/amdgpu/uvd4: fix mask and shift definitions (diff) | |
download | linux-9a12b1c7a0595736d398b24712dc1ce79072662e.tar.xz linux-9a12b1c7a0595736d398b24712dc1ce79072662e.zip |
drm/amd: Make amd_ip_funcs static for SDMA v5.0
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c index d5f0dc132a47..3e48ea38385d 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c @@ -1820,7 +1820,7 @@ static void sdma_v5_0_dump_ip_state(void *handle) amdgpu_gfx_off_ctrl(adev, true); } -const struct amd_ip_funcs sdma_v5_0_ip_funcs = { +static const struct amd_ip_funcs sdma_v5_0_ip_funcs = { .name = "sdma_v5_0", .early_init = sdma_v5_0_early_init, .late_init = NULL, diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h index d4e3c2e696f6..2ab71f21755a 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.h @@ -24,7 +24,6 @@ #ifndef __SDMA_V5_0_H__ #define __SDMA_V5_0_H__ -extern const struct amd_ip_funcs sdma_v5_0_ip_funcs; extern const struct amdgpu_ip_block_version sdma_v5_0_ip_block; #endif /* __SDMA_V5_0_H__ */ |