[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20190114203759.19578-1-malat@debian.org>
Date: Mon, 14 Jan 2019 21:37:59 +0100
From: Mathieu Malaterre <malat@...ian.org>
To: Alexander Viro <viro@...iv.linux.org.uk>
Cc: Mathieu Malaterre <malat@...ian.org>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] seq_file: annotate implicit fall through
There is a plan to build the kernel with -Wimplicit-fallthrough and
this place in the code produced a warning (W=1).
This commit remove the following warning:
fs/seq_file.c:319:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre <malat@...ian.org>
---
fs/seq_file.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 1dea7a8a5255..abe27ec43176 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -317,6 +317,7 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence)
switch (whence) {
case SEEK_CUR:
offset += file->f_pos;
+ /* fall through */
case SEEK_SET:
if (offset < 0)
break;
--
2.19.2
Powered by blists - more mailing lists