drm/amd: make amdgpu_ucode_validate static
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Jan 2023 15:13:34 +0000 (09:13 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:58 +0000 (14:32 -0500)
No consumers outside of amdgpu_ucode.c use amdgpu_ucode_validate
anymore, so make the function static.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h

index 8ebfec12da87326797c60fdc84bd6d13027805f1..47549d659d9b03d5e72c9b5fcf38eb5aa0341a1b 100644 (file)
@@ -504,7 +504,7 @@ void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr)
        }
 }
 
-int amdgpu_ucode_validate(const struct firmware *fw)
+static int amdgpu_ucode_validate(const struct firmware *fw)
 {
        const struct common_firmware_header *hdr =
                (const struct common_firmware_header *)fw->data;
index 848579d4988bcdb66e5005ab5665e064e47f8501..bee93ab4298f1fc53338f480376cfb6f31651784 100644 (file)
@@ -543,7 +543,6 @@ void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr);
 void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr);
 void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr);
 void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr);
-int amdgpu_ucode_validate(const struct firmware *fw);
 int amdgpu_ucode_request(struct amdgpu_device *adev, const struct firmware **fw,
                         const char *fw_name);
 void amdgpu_ucode_release(const struct firmware **fw);