Skip to contentSkip to conversation

fs/signalfd: 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 fs/signalfd: 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/signalfd.c:178:7: warning: this statement may fall through [-Wimplicit-fallthrough=]

---
 fs/signalfd.c | 1 +
 1 file changed, 1 insertion(+)
fs/signalfd.c +1 -0
index 757afc7c5895..44b6845b071c 100644
@@ -176,6 +176,7 @@ static ssize_t signalfd_dequeue(struct signalfd_ctx *ctx, kernel_siginfo_t *info
 		if (!nonblock)
 			break;
 		ret = -EAGAIN;
+		/* fall through */
 	default:
 		spin_unlock_irq(&current->sighand->siglock);
 		return ret;
Signature · 1 line
2.19.2