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

drm/amd: Make amd_ip_funcs static for SDMA v5.2

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>

authored by

Tobias Jakobi and committed by
Alex Deucher
8641b817 9a12b1c7

+1 -2
+1 -1
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
··· 1776 1776 amdgpu_gfx_off_ctrl(adev, true); 1777 1777 } 1778 1778 1779 - const struct amd_ip_funcs sdma_v5_2_ip_funcs = { 1779 + static const struct amd_ip_funcs sdma_v5_2_ip_funcs = { 1780 1780 .name = "sdma_v5_2", 1781 1781 .early_init = sdma_v5_2_early_init, 1782 1782 .late_init = NULL,
-1
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.h
··· 24 24 #ifndef __SDMA_V5_2_H__ 25 25 #define __SDMA_V5_2_H__ 26 26 27 - extern const struct amd_ip_funcs sdma_v5_2_ip_funcs; 28 27 extern const struct amdgpu_ip_block_version sdma_v5_2_ip_block; 29 28 30 29 #endif /* __SDMA_V5_2_H__ */