]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Change amdgpu_ras_block_late_init_default function scope
authorMaíra Canal <maira.canal@usp.br>
Tue, 22 Feb 2022 13:16:52 +0000 (10:16 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Feb 2022 19:02:51 +0000 (14:02 -0500)
commita4c9156c0dadd62050c48bd66ac3b47413130bbf
tree196635ce27301afa19a962cfedb2d111b35e16e6
parent515071113a7be41a35c635b6377cd695921a777f
drm/amdgpu: Change amdgpu_ras_block_late_init_default function scope

Turn previously global function into a static function to avoid the
following Clang warning:

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2459:5: warning: no previous prototype
for function 'amdgpu_ras_block_late_init_default' [-Wmissing-prototypes]
int amdgpu_ras_block_late_init_default(struct amdgpu_device *adev,
    ^
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2459:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int amdgpu_ras_block_late_init_default(struct amdgpu_device *adev,
^
static

Signed-off-by: Maíra Canal <maira.canal@usp.br>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c