AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: fix -Wswitch warning due to missing of default case
@ 2019-05-12  3:20 Hawking Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Hawking Zhang @ 2019-05-12  3:20 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Hawking Zhang

Change-Id: I40ed446b8f7431efd73ef09938ec5e2b5ab09f04
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
index d2acfcce7150..201c00411720 100644
--- a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
+++ b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
@@ -476,6 +476,8 @@ static int df_v3_6_pmc_start(struct amdgpu_device *adev, uint64_t config,
 
 		ret = 0;
 
+		break;
+	default:
 		break;
 	}
 
@@ -504,6 +506,8 @@ static int df_v3_6_pmc_stop(struct amdgpu_device *adev, uint64_t config,
 			ret = 0;
 
 			break;
+	default:
+		break;
 	}
 
 	return ret;
@@ -527,6 +531,8 @@ static void df_v3_6_pmc_get_count(struct amdgpu_device *adev,
 			df_v3_6_get_xgmi_link_cntr(adev, xgmi_tx_link, count);
 		}
 
+		break;
+	default:
 		break;
 	}
 
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/amdgpu: fix -Wswitch warning due to missing of default case
@ 2019-05-12 10:37 Yuan, Xiaojie
  0 siblings, 0 replies; 2+ messages in thread
From: Yuan, Xiaojie @ 2019-05-12 10:37 UTC (permalink / raw)
  To: Zhang, Hawking,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org

Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>

________________________________________
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Hawking Zhang <Hawking.Zhang@amd.com>
Sent: Sunday, May 12, 2019 11:20 AM
To: amd-gfx@lists.freedesktop.org
Cc: Zhang, Hawking
Subject: [PATCH] drm/amdgpu: fix -Wswitch warning due to missing of default case

[CAUTION: External Email]

Change-Id: I40ed446b8f7431efd73ef09938ec5e2b5ab09f04
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
index d2acfcce7150..201c00411720 100644
--- a/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
+++ b/drivers/gpu/drm/amd/amdgpu/df_v3_6.c
@@ -476,6 +476,8 @@ static int df_v3_6_pmc_start(struct amdgpu_device *adev, uint64_t config,

                ret = 0;

+               break;
+       default:
                break;
        }

@@ -504,6 +506,8 @@ static int df_v3_6_pmc_stop(struct amdgpu_device *adev, uint64_t config,
                        ret = 0;

                        break;
+       default:
+               break;
        }

        return ret;
@@ -527,6 +531,8 @@ static void df_v3_6_pmc_get_count(struct amdgpu_device *adev,
                        df_v3_6_get_xgmi_link_cntr(adev, xgmi_tx_link, count);
                }

+               break;
+       default:
                break;
        }

--
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-12 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-12  3:20 [PATCH] drm/amdgpu: fix -Wswitch warning due to missing of default case Hawking Zhang
  -- strict thread matches above, loose matches on Subject: below --
2019-05-12 10:37 Yuan, Xiaojie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox