]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/amdgpu: Make amdgpu_cs_parser_init static (v2)
authorAlex Xie <AlexBin.Xie@amd.com>
Tue, 20 Jun 2017 20:35:04 +0000 (16:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Jun 2017 16:43:51 +0000 (12:43 -0400)
The function is called only once inside the .c file.
v2: update the commit message (Michel)

Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index ea8242e6a2f2861ca1c3d394b0a56346d578471f..ff7bf1a9f96780408027d4273101666df7335522 100644 (file)
@@ -1927,7 +1927,6 @@ void amdgpu_pci_config_reset(struct amdgpu_device *adev);
 bool amdgpu_need_post(struct amdgpu_device *adev);
 void amdgpu_update_display_priority(struct amdgpu_device *adev);
 
-int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data);
 void amdgpu_cs_report_moved_bytes(struct amdgpu_device *adev, u64 num_bytes);
 void amdgpu_ttm_placement_from_domain(struct amdgpu_bo *abo, u32 domain);
 bool amdgpu_ttm_bo_is_amdgpu_bo(struct ttm_buffer_object *bo);
index 144b251bd7c8e945dbcf9830e6d59e7866640388..546a77e6fdff4ff62f65c04df6ef7aa0237aaf64 100644 (file)
@@ -64,7 +64,7 @@ static int amdgpu_cs_user_fence_chunk(struct amdgpu_cs_parser *p,
        return 0;
 }
 
-int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data)
+static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data)
 {
        struct amdgpu_fpriv *fpriv = p->filp->driver_priv;
        struct amdgpu_vm *vm = &fpriv->vm;