]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: suppress some compile warnings
authorEvan Quan <evan.quan@amd.com>
Thu, 19 May 2022 09:28:12 +0000 (17:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 26 May 2022 18:56:33 +0000 (14:56 -0400)
Suppress two compile warnings about "no previous prototype".

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/soc21.c

index 881570dced4123673ff903799bb9fb8aa0d8f01c..16cdfb30b01347ae5477b46efc791863df6b41fa 100644 (file)
@@ -1361,7 +1361,7 @@ union mall_info {
        struct mall_info_v1_0 v1;
 };
 
-int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev)
+static int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev)
 {
        struct binary_header *bhdr;
        union mall_info *mall_info;
index c6a8520053bb224d596fc3c9d7e136708453e3c5..9e18a2b22607b02567747caf367b24d236730b63 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "soc15.h"
 #include "soc15_common.h"
+#include "soc21.h"
 
 static const struct amd_ip_funcs soc21_common_ip_funcs;