Skip to contentSkip to conversation

seq_file: annotate implicit fall through

PATCH New Mathieu Malaterre 1 participant 1 message Jan 14, 2019 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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=]

---
 fs/seq_file.c | 1 +
 1 file changed, 1 insertion(+)
fs/seq_file.c +1 -0
index 1dea7a8a5255..abe27ec43176 100644
@@ -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;
Signature · 1 line
2.19.2