* [PATCH] Compiler Attributes: Add continue in comment
@ 2021-05-06 12:30 Wei Ming Chen
2021-05-06 16:29 ` Miguel Ojeda
0 siblings, 1 reply; 2+ messages in thread
From: Wei Ming Chen @ 2021-05-06 12:30 UTC (permalink / raw)
To: linux-kernel; +Cc: ojeda, Wei Ming Chen
Add "continue;" for switch/case block according to Doc[1]
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
---
include/linux/compiler_attributes.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h
index c043b8d2b17b..183ddd5fd072 100644
--- a/include/linux/compiler_attributes.h
+++ b/include/linux/compiler_attributes.h
@@ -199,6 +199,7 @@
* must end with any of these keywords:
* break;
* fallthrough;
+ * continue;
* goto <label>;
* return [expression];
*
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Compiler Attributes: Add continue in comment
2021-05-06 12:30 [PATCH] Compiler Attributes: Add continue in comment Wei Ming Chen
@ 2021-05-06 16:29 ` Miguel Ojeda
0 siblings, 0 replies; 2+ messages in thread
From: Miguel Ojeda @ 2021-05-06 16:29 UTC (permalink / raw)
To: Wei Ming Chen; +Cc: linux-kernel, Miguel Ojeda
On Thu, May 6, 2021 at 2:31 PM Wei Ming Chen <jj251510319013@gmail.com> wrote:
>
> Add "continue;" for switch/case block according to Doc[1]
>
> [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
>
> Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
Thanks, queuing it!
Cheers,
Miguel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-06 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-06 12:30 [PATCH] Compiler Attributes: Add continue in comment Wei Ming Chen
2021-05-06 16:29 ` Miguel Ojeda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).