From f4f8e6d29cbcc1c205a12d7c792abdaf4f8fec33 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Wed, 10 May 2017 19:33:52 +1000 Subject: GCC7: fixes for -Wimplicit-fallthrough expected regexes It turns out GCC7 adds a useful warning and does fancy things like parsing your comments to work out that you intended to do the fallthrough. There's a few places where we don't match the regex. Fix them, as it's harmless to do so. Found by building on Fedora Rawhide in Travis. Signed-off-by: Stewart Smith (cherry picked from commit e58aeb1ca304835d65beed98db7f118d3c154cd4) Signed-off-by: Stewart Smith --- platforms/ibm-fsp/firenze-pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'platforms') diff --git a/platforms/ibm-fsp/firenze-pci.c b/platforms/ibm-fsp/firenze-pci.c index 4263f47..828ab0f 100644 --- a/platforms/ibm-fsp/firenze-pci.c +++ b/platforms/ibm-fsp/firenze-pci.c @@ -505,7 +505,8 @@ static int64_t firenze_pci_slot_freset(struct pci_slot *slot) msecs_to_tb(FIRENZE_PCI_SLOT_DELAY)); } - /* Fall through: Power is off, turn it on */ + /* Power is off, turn it on */ + /* Fallthrough */ case FIRENZE_PCI_SLOT_FRESET_POWER_OFF: /* Update last power status */ pval = (uint8_t *)(plat_slot->req->rw_buf); -- cgit v1.1