drm/amdgpu: suppress some compile warnings
Subsystems (2)
PATCH 1/1 drm/amdgpu: suppress some compile warnings
Suppress two compile warnings about "no previous prototype".
Reported-by kernel test robot <[email protected]>
Signed-off-by Evan Quan <[email protected]>
Change-Id I74d029c6ebd8bf6bc08edada7a992d04786330d8
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +- drivers/gpu/drm/amd/amdgpu/soc21.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -1
@@ -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;
drivers/gpu/drm/amd/amdgpu/soc21.c +1 -0
@@ -42,6 +42,7 @@#include "soc15.h" #include "soc15_common.h" +#include "soc21.h" static const struct amd_ip_funcs soc21_common_ip_funcs;
Signature · 1 line
2.29.0
Quoted 5 lines · Evan Quan
Suppress two compile warnings about "no previous prototype".
Reported-by kernel test robot <[email protected]>Signed-off-by Evan Quan <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 34 lines
Change-Id: I74d029c6ebd8bf6bc08edada7a992d04786330d8
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +- drivers/gpu/drm/amd/amdgpu/soc21.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1
-1@@ -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;drivers/gpu/drm/amd/amdgpu/soc21.c +1
-1@@ -42,6 +42,7 @@#include "soc15.h" #include "soc15_common.h" +#include "soc21.h" static const struct amd_ip_funcs soc21_common_ip_funcs; --2.29.0