drm/amdgpu: Couple small warning fixes
authorHarry Wentland <harry.wentland@amd.com>
Tue, 28 Mar 2017 15:29:53 +0000 (11:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:48 +0000 (23:55 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c

index c40c1a16e72e2acbcc9dbe24c7bb405be1e39c57..97f661372a1c3eb2fa30e81698d35a832eb9a91a 100644 (file)
@@ -904,11 +904,12 @@ static int amdgpu_cs_ib_fill(struct amdgpu_device *adev,
                        continue;
 
                if (chunk_ib->ip_type == AMDGPU_HW_IP_GFX && amdgpu_sriov_vf(adev)) {
-                       if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT)
+                       if (chunk_ib->flags & AMDGPU_IB_FLAG_PREEMPT) {
                                if (chunk_ib->flags & AMDGPU_IB_FLAG_CE)
                                        ce_preempt++;
                                else
                                        de_preempt++;
+                       }
 
                        /* each GFX command submit allows 0 or 1 IB preemptible for CE & DE */
                        if (ce_preempt > 1 || de_preempt > 1)
index 6b8bb1b070cca3078e76c48b3f08be4bfd6021ff..aab857d89d03fa3fb8b2e19dc73e19409cca42c0 100644 (file)
@@ -172,7 +172,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
        if (ring->funcs->init_cond_exec)
                patch_offset = amdgpu_ring_init_cond_exec(ring);
 
-               if (ring->funcs->emit_hdp_flush
+       if (ring->funcs->emit_hdp_flush
 #ifdef CONFIG_X86_64
            && !(adev->flags & AMD_IS_APU)
 #endif