* [PATCH] docs: Use fallthrough pseudo-keyword
@ 2021-05-15 15:51 Wei Ming Chen
2021-05-20 20:07 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Wei Ming Chen @ 2021-05-15 15:51 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-doc, federico.vaga, corbet, alexs, Wei Ming Chen
Replace /* fall through */ comment with fallthrough, make
it align with original process/coding-style.rst
Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
---
Documentation/translations/it_IT/process/coding-style.rst | 2 +-
Documentation/translations/zh_CN/process/coding-style.rst | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/translations/it_IT/process/coding-style.rst b/Documentation/translations/it_IT/process/coding-style.rst
index 95f2e7c985e2..ecc74ba50d3e 100644
--- a/Documentation/translations/it_IT/process/coding-style.rst
+++ b/Documentation/translations/it_IT/process/coding-style.rst
@@ -62,7 +62,7 @@ i ``case``. Un esempio.:
case 'K':
case 'k':
mem <<= 10;
- /* fall through */
+ fallthrough;
default:
break;
}
diff --git a/Documentation/translations/zh_CN/process/coding-style.rst b/Documentation/translations/zh_CN/process/coding-style.rst
index 406d43a02c02..b8c484a84d10 100644
--- a/Documentation/translations/zh_CN/process/coding-style.rst
+++ b/Documentation/translations/zh_CN/process/coding-style.rst
@@ -61,7 +61,7 @@ Linux 内核代码风格
case 'K':
case 'k':
mem <<= 10;
- /* fall through */
+ fallthrough;
default:
break;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] docs: Use fallthrough pseudo-keyword
2021-05-15 15:51 [PATCH] docs: Use fallthrough pseudo-keyword Wei Ming Chen
@ 2021-05-20 20:07 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2021-05-20 20:07 UTC (permalink / raw)
To: Wei Ming Chen, linux-kernel
Cc: linux-doc, federico.vaga, alexs, Wei Ming Chen
Wei Ming Chen <jj251510319013@gmail.com> writes:
> Replace /* fall through */ comment with fallthrough, make
> it align with original process/coding-style.rst
>
> Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
> ---
> Documentation/translations/it_IT/process/coding-style.rst | 2 +-
> Documentation/translations/zh_CN/process/coding-style.rst | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-20 20:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-15 15:51 [PATCH] docs: Use fallthrough pseudo-keyword Wei Ming Chen
2021-05-20 20:07 ` Jonathan Corbet
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).