drm/amdgpu: fix wrong type
authormonk.liu <monk.liu@amd.com>
Mon, 8 Jun 2015 06:48:15 +0000 (14:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Jun 2015 15:21:45 +0000 (11:21 -0400)
Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c

index 8f0fc22f6810bd80ef8546e58980c64ce3731e28..f2d885c1da8fdf523396d625d7253f003ae14444 100644 (file)
@@ -522,7 +522,8 @@ long amdgpu_fence_wait_seq_timeout(struct amdgpu_device *adev, u64 *target_seq,
 {
        uint64_t last_seq[AMDGPU_MAX_RINGS];
        bool signaled;
-       int i, r;
+       int i;
+       long r;
 
        if (timeout == 0) {
                return amdgpu_fence_any_seq_signaled(adev, target_seq);