Skip to contentSkip to conversation

drm/amdgpu: suppress some compile warnings

PATCH In review Evan Quan 2 participants 2 messages May 19, 2022

Subsystems (2)
lore
Share & tools
lore

Evan Quan

author
#0 lore raw

PATCH 1/1 drm/amdgpu: suppress some compile warnings

Suppress two compile warnings about "no previous prototype".

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
index 881570dced41..16cdfb30b013 100644
@@ -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
index c6a8520053bb..9e18a2b22607 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Evan Quan

Suppress two compile warnings about "no previous prototype".

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
index 881570dced41..16cdfb30b013 100644
@@ -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
index c6a8520053bb..9e18a2b22607 100644
@@ -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