ata: mark expected switch fall-throughs

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

In cases where a "drop through" comment was already in place, I replaced
it  with a proper "fall through" comment, which is what GCC is expecting
to find.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Gustavo A. R. Silva 2017-10-12 14:19:16 -05:00 committed by Tejun Heo
parent 14d7045c7f
commit 05b8360599
5 changed files with 10 additions and 2 deletions

View file

@ -295,6 +295,7 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
node->name);
break;
}
/* fall through */
case -ENODEV:
/* continue normally */
hpriv->phys[port] = NULL;