* [PATCH] drm/amdkfd: Fix missing break in switch statement
@ 2019-07-21 21:49 Gustavo A. R. Silva
2019-07-22 19:10 ` Alex Deucher
0 siblings, 1 reply; 5+ messages in thread
From: Gustavo A. R. Silva @ 2019-07-21 21:49 UTC (permalink / raw)
To: Philip Cox, Oded Gabbay, Alex Deucher, Christian König,
David (ChunMing) Zhou, David Airlie, Daniel Vetter
Cc: dri-devel, amd-gfx, linux-kernel, Gustavo A. R. Silva, Kees Cook
Add missing break statement in order to prevent the code from falling
through to case CHIP_NAVI10.
This bug was found thanks to the ongoing efforts to enable
-Wimplicit-fallthrough.
Fixes: 14328aa58ce5 ("drm/amdkfd: Add navi10 support to amdkfd. (v3)")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
index 792371442195..4e3fc284f6ac 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
@@ -668,6 +668,7 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,
case CHIP_RAVEN:
pcache_info = raven_cache_info;
num_of_cache_types = ARRAY_SIZE(raven_cache_info);
+ break;
case CHIP_NAVI10:
pcache_info = navi10_cache_info;
num_of_cache_types = ARRAY_SIZE(navi10_cache_info);
--
2.22.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] drm/amdkfd: Fix missing break in switch statement
2019-07-21 21:49 [PATCH] drm/amdkfd: Fix missing break in switch statement Gustavo A. R. Silva
@ 2019-07-22 19:10 ` Alex Deucher
2019-07-22 19:19 ` Gustavo A. R. Silva
0 siblings, 1 reply; 5+ messages in thread
From: Alex Deucher @ 2019-07-22 19:10 UTC (permalink / raw)
To: Gustavo A. R. Silva
Cc: Philip Cox, Oded Gabbay, Alex Deucher, Christian König,
David (ChunMing) Zhou, David Airlie, Daniel Vetter, Kees Cook,
amd-gfx list, Maling list - DRI developers, LKML
On Sun, Jul 21, 2019 at 6:12 PM Gustavo A. R. Silva
<gustavo@embeddedor.com> wrote:
>
> Add missing break statement in order to prevent the code from falling
> through to case CHIP_NAVI10.
>
> This bug was found thanks to the ongoing efforts to enable
> -Wimplicit-fallthrough.
>
> Fixes: 14328aa58ce5 ("drm/amdkfd: Add navi10 support to amdkfd. (v3)")
> Cc: stable@vger.kernel.org
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Applied. Thanks!
Alex
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> index 792371442195..4e3fc284f6ac 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
> @@ -668,6 +668,7 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,
> case CHIP_RAVEN:
> pcache_info = raven_cache_info;
> num_of_cache_types = ARRAY_SIZE(raven_cache_info);
> + break;
> case CHIP_NAVI10:
> pcache_info = navi10_cache_info;
> num_of_cache_types = ARRAY_SIZE(navi10_cache_info);
> --
> 2.22.0
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] drm/amdkfd: Fix missing break in switch statement
2019-07-22 19:10 ` Alex Deucher
@ 2019-07-22 19:19 ` Gustavo A. R. Silva
2019-07-22 19:45 ` Alex Deucher
0 siblings, 1 reply; 5+ messages in thread
From: Gustavo A. R. Silva @ 2019-07-22 19:19 UTC (permalink / raw)
To: Alex Deucher
Cc: Philip Cox, Oded Gabbay, Alex Deucher, Christian König,
David (ChunMing) Zhou, David Airlie, Daniel Vetter, Kees Cook,
amd-gfx list, Maling list - DRI developers, LKML
On 7/22/19 2:10 PM, Alex Deucher wrote:
> On Sun, Jul 21, 2019 at 6:12 PM Gustavo A. R. Silva
> <gustavo@embeddedor.com> wrote:
>>
>> Add missing break statement in order to prevent the code from falling
>> through to case CHIP_NAVI10.
>>
>> This bug was found thanks to the ongoing efforts to enable
>> -Wimplicit-fallthrough.
>>
>> Fixes: 14328aa58ce5 ("drm/amdkfd: Add navi10 support to amdkfd. (v3)")
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
>
> Applied. Thanks!
>
By the way, Alex, I'm planning to add these fixes to my tree. I want
to send a pull-request to Linus for v5.3-rc2 this afternoon. We want
to have the -Wimplicit-fallthrough option globally enabled in v5.3,
and these are some of the last fall-through warnings remaining in
the kernel.
Can I have your Ack or Signed-off-by for all these drm patches?
Thanks!
--
Gustavo
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] drm/amdkfd: Fix missing break in switch statement
2019-07-22 19:19 ` Gustavo A. R. Silva
@ 2019-07-22 19:45 ` Alex Deucher
2019-07-22 19:47 ` Gustavo A. R. Silva
0 siblings, 1 reply; 5+ messages in thread
From: Alex Deucher @ 2019-07-22 19:45 UTC (permalink / raw)
To: Gustavo A. R. Silva
Cc: Philip Cox, Oded Gabbay, Alex Deucher, Christian König,
David (ChunMing) Zhou, David Airlie, Daniel Vetter, Kees Cook,
amd-gfx list, Maling list - DRI developers, LKML
On Mon, Jul 22, 2019 at 3:19 PM Gustavo A. R. Silva
<gustavo@embeddedor.com> wrote:
>
>
>
> On 7/22/19 2:10 PM, Alex Deucher wrote:
> > On Sun, Jul 21, 2019 at 6:12 PM Gustavo A. R. Silva
> > <gustavo@embeddedor.com> wrote:
> >>
> >> Add missing break statement in order to prevent the code from falling
> >> through to case CHIP_NAVI10.
> >>
> >> This bug was found thanks to the ongoing efforts to enable
> >> -Wimplicit-fallthrough.
> >>
> >> Fixes: 14328aa58ce5 ("drm/amdkfd: Add navi10 support to amdkfd. (v3)")
> >> Cc: stable@vger.kernel.org
> >> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
> >
> > Applied. Thanks!
> >
>
> By the way, Alex, I'm planning to add these fixes to my tree. I want
> to send a pull-request to Linus for v5.3-rc2 this afternoon. We want
> to have the -Wimplicit-fallthrough option globally enabled in v5.3,
> and these are some of the last fall-through warnings remaining in
> the kernel.
>
> Can I have your Ack or Signed-off-by for all these drm patches?
I didn't realize you were sending these yourself. I was going to
include them in my upcoming -fixes pull. Feel free to add my RB to
all three.
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] drm/amdkfd: Fix missing break in switch statement
2019-07-22 19:45 ` Alex Deucher
@ 2019-07-22 19:47 ` Gustavo A. R. Silva
0 siblings, 0 replies; 5+ messages in thread
From: Gustavo A. R. Silva @ 2019-07-22 19:47 UTC (permalink / raw)
To: Alex Deucher
Cc: Philip Cox, Oded Gabbay, Alex Deucher, Christian König,
David (ChunMing) Zhou, David Airlie, Daniel Vetter, Kees Cook,
amd-gfx list, Maling list - DRI developers, LKML
On 7/22/19 2:45 PM, Alex Deucher wrote:
>>
>> By the way, Alex, I'm planning to add these fixes to my tree. I want
>> to send a pull-request to Linus for v5.3-rc2 this afternoon. We want
>> to have the -Wimplicit-fallthrough option globally enabled in v5.3,
>> and these are some of the last fall-through warnings remaining in
>> the kernel.
>>
>> Can I have your Ack or Signed-off-by for all these drm patches?
>
> I didn't realize you were sending these yourself. I was going to
> include them in my upcoming -fixes pull. Feel free to add my RB to
> all three.
>
Awesome! :)
Thanks
--
Gustavo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-07-22 19:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-21 21:49 [PATCH] drm/amdkfd: Fix missing break in switch statement Gustavo A. R. Silva
2019-07-22 19:10 ` Alex Deucher
2019-07-22 19:19 ` Gustavo A. R. Silva
2019-07-22 19:45 ` Alex Deucher
2019-07-22 19:47 ` Gustavo A. R. Silva
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.