linux-erofs.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] erofs: Convert to use the fallthrough macro
@ 2020-08-08  9:21 linmiaohe
  2020-08-10  3:39 ` Chao Yu
  0 siblings, 1 reply; 3+ messages in thread
From: linmiaohe @ 2020-08-08  9:21 UTC (permalink / raw)
  To: xiang, chao; +Cc: linmiaohe, linux-erofs, linux-kernel

From: Miaohe Lin <linmiaohe@huawei.com>

Convert the uses of fallthrough comments to fallthrough macro.

Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 fs/erofs/zmap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/erofs/zmap.c b/fs/erofs/zmap.c
index 7d40d78ea864..ae325541884e 100644
--- a/fs/erofs/zmap.c
+++ b/fs/erofs/zmap.c
@@ -359,7 +359,7 @@ static int z_erofs_extent_lookback(struct z_erofs_maprecorder *m,
 		return z_erofs_extent_lookback(m, m->delta[0]);
 	case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN:
 		map->m_flags &= ~EROFS_MAP_ZIPPED;
-		/* fallthrough */
+		fallthrough;
 	case Z_EROFS_VLE_CLUSTER_TYPE_HEAD:
 		map->m_la = (lcn << lclusterbits) | m->clusterofs;
 		break;
@@ -416,7 +416,7 @@ int z_erofs_map_blocks_iter(struct inode *inode,
 	case Z_EROFS_VLE_CLUSTER_TYPE_PLAIN:
 		if (endoff >= m.clusterofs)
 			map->m_flags &= ~EROFS_MAP_ZIPPED;
-		/* fallthrough */
+		fallthrough;
 	case Z_EROFS_VLE_CLUSTER_TYPE_HEAD:
 		if (endoff >= m.clusterofs) {
 			map->m_la = (m.lcn << lclusterbits) | m.clusterofs;
@@ -433,7 +433,7 @@ int z_erofs_map_blocks_iter(struct inode *inode,
 		end = (m.lcn << lclusterbits) | m.clusterofs;
 		map->m_flags |= EROFS_MAP_FULL_MAPPED;
 		m.delta[0] = 1;
-		/* fallthrough */
+		fallthrough;
 	case Z_EROFS_VLE_CLUSTER_TYPE_NONHEAD:
 		/* get the correspoinding first chunk */
 		err = z_erofs_extent_lookback(&m, m.delta[0]);
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] erofs: Convert to use the fallthrough macro
  2020-08-08  9:21 [PATCH] erofs: Convert to use the fallthrough macro linmiaohe
@ 2020-08-10  3:39 ` Chao Yu
  2020-08-10 12:14   ` Gao Xiang
  0 siblings, 1 reply; 3+ messages in thread
From: Chao Yu @ 2020-08-10  3:39 UTC (permalink / raw)
  To: linmiaohe, xiang, chao; +Cc: linux-erofs, linux-kernel

On 2020/8/8 17:21, linmiaohe wrote:
> From: Miaohe Lin <linmiaohe@huawei.com>
> 
> Convert the uses of fallthrough comments to fallthrough macro.
> 
> Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>

Reviewed-by: Chao Yu <yuchao0@huawei.com>

Thanks,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] erofs: Convert to use the fallthrough macro
  2020-08-10  3:39 ` Chao Yu
@ 2020-08-10 12:14   ` Gao Xiang
  0 siblings, 0 replies; 3+ messages in thread
From: Gao Xiang @ 2020-08-10 12:14 UTC (permalink / raw)
  To: Chao Yu, linmiaohe; +Cc: xiang, linux-erofs, linux-kernel

On Mon, Aug 10, 2020 at 11:39:42AM +0800, Chao Yu wrote:
> On 2020/8/8 17:21, linmiaohe wrote:
> > From: Miaohe Lin <linmiaohe@huawei.com>
> > 
> > Convert the uses of fallthrough comments to fallthrough macro.
> > 
> > Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>
> > Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
> 
> Reviewed-by: Chao Yu <yuchao0@huawei.com>

Looks good to me too,

Reviewed-by: Gao Xiang <hsiangkao@redhat.com>

(Although it seems some exist discussions here, e.g.,
 https://lore.kernel.org/r/20200708065512.GN2005@dread.disaster.area 
 Will confirm that before the next cycle.)

Thanks,
Gao Xiang

> 
> Thanks,
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-10 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-08  9:21 [PATCH] erofs: Convert to use the fallthrough macro linmiaohe
2020-08-10  3:39 ` Chao Yu
2020-08-10 12:14   ` Gao Xiang

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).