All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: sony-laptop: Mark expected switch fall-through
@ 2018-07-05 20:47 Gustavo A. R. Silva
  2018-07-06 23:24 ` Darren Hart
  0 siblings, 1 reply; 5+ messages in thread
From: Gustavo A. R. Silva @ 2018-07-05 20:47 UTC (permalink / raw)
  To: Mattia Dongili, Darren Hart, Andy Shevchenko
  Cc: platform-driver-x86, linux-kernel, Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 drivers/platform/x86/sony-laptop.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
index b205b03..e614cb7 100644
--- a/drivers/platform/x86/sony-laptop.c
+++ b/drivers/platform/x86/sony-laptop.c
@@ -4427,6 +4427,7 @@ sony_pic_read_possible_resource(struct acpi_resource *resource, void *context)
 	default:
 		dprintk("Resource %d isn't an IRQ nor an IO port\n",
 			resource->type);
+		/* fall through */
 
 	case ACPI_RESOURCE_TYPE_END_TAG:
 		return AE_OK;
-- 
2.7.4


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

end of thread, other threads:[~2018-09-11 22:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-05 20:47 [PATCH] platform/x86: sony-laptop: Mark expected switch fall-through Gustavo A. R. Silva
2018-07-06 23:24 ` Darren Hart
2018-07-07 16:19   ` Andy Shevchenko
2018-07-07 18:56   ` Mattia Dongili
2018-09-11 22:51     ` Darren Hart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.