Re: [PATCH] drm/amdgpu: fix -Wswitch warning due to missing of default case

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

________________________________________
From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Hawking Zhang <Hawking.Zhang@xxxxxxx>
Sent: Sunday, May 12, 2019 11:20 AM
To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
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@xxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux