diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-09-18 10:09:35 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-22 10:24:17 -0400 |
commit | 4d446656fabb308ae2171e95a624a0367dcd34d2 (patch) | |
tree | 61584db582d102dbb224a219ea44be7eabfe6067 /drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |
parent | fa675329fc79dc2f657811b26f17e7bd6f1b9837 (diff) |
drm/amdgpu: mark symbols static where possible
We get 7 warnings when building kernel with W=1:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:1990:5: warning: no previous prototype for 'amdgpu_pre_soft_reset' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c:1548:5: warning: no previous prototype for 'amdgpu_connector_virtual_dpms' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c:1560:5: warning: no previous prototype for 'amdgpu_connector_virtual_set_property' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c:330:5: warning: no previous prototype for 'amdgpu_cs_list_validate' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/dce_virtual.c:98:6: warning: no previous prototype for 'dce_virtual_stop_mc_access' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/dce_virtual.c:130:6: warning: no previous prototype for 'dce_virtual_resume_mc_access' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/dce_virtual.c:136:6: warning: no previous prototype for 'dce_virtual_set_vga_render_state' [-Wmissing-prototypes]
In fact, all of the functions are only used in the file
in which they are declared and don't need a declaration,
but can be made static.
So this patch marks both functions with 'static'.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_virtual.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 00663a7b4053..2d02acd55829 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |||
@@ -95,7 +95,7 @@ static bool dce_virtual_is_display_hung(struct amdgpu_device *adev) | |||
95 | return false; | 95 | return false; |
96 | } | 96 | } |
97 | 97 | ||
98 | void dce_virtual_stop_mc_access(struct amdgpu_device *adev, | 98 | static void dce_virtual_stop_mc_access(struct amdgpu_device *adev, |
99 | struct amdgpu_mode_mc_save *save) | 99 | struct amdgpu_mode_mc_save *save) |
100 | { | 100 | { |
101 | switch (adev->asic_type) { | 101 | switch (adev->asic_type) { |
@@ -127,13 +127,13 @@ void dce_virtual_stop_mc_access(struct amdgpu_device *adev, | |||
127 | 127 | ||
128 | return; | 128 | return; |
129 | } | 129 | } |
130 | void dce_virtual_resume_mc_access(struct amdgpu_device *adev, | 130 | static void dce_virtual_resume_mc_access(struct amdgpu_device *adev, |
131 | struct amdgpu_mode_mc_save *save) | 131 | struct amdgpu_mode_mc_save *save) |
132 | { | 132 | { |
133 | return; | 133 | return; |
134 | } | 134 | } |
135 | 135 | ||
136 | void dce_virtual_set_vga_render_state(struct amdgpu_device *adev, | 136 | static void dce_virtual_set_vga_render_state(struct amdgpu_device *adev, |
137 | bool render) | 137 | bool render) |
138 | { | 138 | { |
139 | return; | 139 | return; |