From: Hawking Zhang <Hawking.Zhang-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Hawking Zhang <Hawking.Zhang-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH] drm/amdgpu: fix -Wswitch warning due to missing of default case
Date: Sun, 12 May 2019 11:20:35 +0800 [thread overview]
Message-ID: <20190512032035.3334-1-Hawking.Zhang@amd.com> (raw)
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
next reply other threads:[~2019-05-12 3:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-12 3:20 Hawking Zhang [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-05-12 10:37 [PATCH] drm/amdgpu: fix -Wswitch warning due to missing of default case Yuan, Xiaojie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190512032035.3334-1-Hawking.Zhang@amd.com \
--to=hawking.zhang-5c7gfcevmho@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox