]> Git Repo - linux.git/commitdiff
MIPS: fix some more fall through errors in arch/mips
authorStephen Rothwell <[email protected]>
Tue, 16 Jul 2019 11:40:16 +0000 (12:40 +0100)
committerPaul Burton <[email protected]>
Tue, 16 Jul 2019 11:40:16 +0000 (12:40 +0100)
Fix these errors:

 arch/mips/cavium-octeon/executive/cvmx-pko.c:489:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
 arch/mips/bcm63xx/dev-flash.c:89:3: error: this statement may fall through [-Werror=implicit-fallthrough=]
 arch/mips/ath79/setup.c:155:17: error: this statement may fall through [-Werror=implicit-fallthrough=]
 arch/mips/ar7/setup.c:50:3: error: this statement may fall through [-Werror=implicit-fallthrough=]

Cc: Florian Fainelli <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: John Crispin <[email protected]>
Cc: Matthias Schiffer <[email protected]>
Cc: "Petr Štetiar" <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
arch/mips/ar7/setup.c
arch/mips/ath79/setup.c
arch/mips/bcm63xx/dev-flash.c
arch/mips/cavium-octeon/executive/cvmx-pko.c

index 7bb9a670bb73574ce208cfc75d6a5b9945d9f35a..e621dcf42b85fe3915a1cec8319daf0ed0f104d4 100644 (file)
@@ -69,6 +69,7 @@ const char *get_system_type(void)
                case TITAN_CHIP_1060:
                        return "TI AR7 (TNETV1060)";
                }
+               /* fall through */
        default:
                return "TI AR7 (unknown)";
        }
index 298b46b4e9cb8b8c2ec211812528169b76bf6966..42a8668b6fe66fc13792ac79dd91884a11032c32 100644 (file)
@@ -156,7 +156,7 @@ static void __init ath79_detect_sys_type(void)
        case REV_ID_MAJOR_QCA9533_V2:
                ver = 2;
                ath79_soc_rev = 2;
-               /* drop through */
+               /* fall through */
 
        case REV_ID_MAJOR_QCA9533:
                ath79_soc = ATH79_SOC_QCA9533;
index 172dd8397178ac4bf4259fdad99a576b9cd83029..a1093934c6163a23a1fea259a6ad963e7528e56f 100644 (file)
@@ -94,6 +94,7 @@ static int __init bcm63xx_detect_flash_type(void)
                case STRAPBUS_6368_BOOT_SEL_PARALLEL:
                        return BCM63XX_FLASH_TYPE_PARALLEL;
                }
+               /* fall through */
        default:
                return -EINVAL;
        }
index 676fab50dd2b0e3acf31c3599bfeb2e3e2f08894..b077597c668a998efc3caf2be9b47caee8874118 100644 (file)
@@ -485,11 +485,11 @@ cvmx_pko_status_t cvmx_pko_config_port(uint64_t port, uint64_t base_queue,
                        config.s.qos_mask = 0xff;
                        break;
                case CVMX_PKO_QUEUE_STATIC_PRIORITY:
-                       /* Pass 1 will fall through to the error case */
                        if (!cvmx_octeon_is_pass1()) {
                                config.s.qos_mask = 0xff;
                                break;
                        }
+                       /* fall through - to the error case, when Pass 1 */
                default:
                        cvmx_dprintf("ERROR: cvmx_pko_config_port: Invalid "
                                     "priority %llu\n",
This page took 0.059532 seconds and 4 git commands to generate.