Commit 2351b7d4 authored by Isabella Basso's avatar Isabella Basso Committed by Alex Deucher

drm/amdgpu: fix function scopes

This turns previously global functions into static, thus removing
compile-time warnings such as:

 warning: no previous prototype for 'amdgpu_vkms_output_init' [-Wmissing-prototypes]
 399 | int amdgpu_vkms_output_init(struct drm_device *dev,
     |     ^~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: default avatarIsabella Basso <isabbasso@riseup.net>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bbe04dec
...@@ -411,8 +411,8 @@ static struct drm_plane *amdgpu_vkms_plane_init(struct drm_device *dev, ...@@ -411,8 +411,8 @@ static struct drm_plane *amdgpu_vkms_plane_init(struct drm_device *dev,
return plane; return plane;
} }
int amdgpu_vkms_output_init(struct drm_device *dev, static int amdgpu_vkms_output_init(struct drm_device *dev, struct
struct amdgpu_vkms_output *output, int index) amdgpu_vkms_output *output, int index)
{ {
struct drm_connector *connector = &output->connector; struct drm_connector *connector = &output->connector;
struct drm_encoder *encoder = &output->encoder; struct drm_encoder *encoder = &output->encoder;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment