Some versions of GCC emit a false positive warning that fdt may be
uninitialized. This can't happen, so tell the compiler that.

Signed-off-by: Ahmad Fatoum <[email protected]>
---
v1 -> v2:
  - removed warning and fallthrough to CONNECTOR case. As Sascha
    correctly notes, this path is impossible to reach and indeed
    new compiler versions don't warn about it, thus just tell the
    compiler that it's unreachable.
---
 arch/arm/boards/tqma93xx/lowlevel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boards/tqma93xx/lowlevel.c 
b/arch/arm/boards/tqma93xx/lowlevel.c
index 8d89ee530ff8..14733d52a3c3 100644
--- a/arch/arm/boards/tqma93xx/lowlevel.c
+++ b/arch/arm/boards/tqma93xx/lowlevel.c
@@ -92,6 +92,8 @@ static noinline void tqma93xx_continue(void)
        case VARD_FORMFACTOR_TYPE_CONNECTOR:
                fdt = __dtb_z_imx93_tqma9352_mba93xxca_start;
                break;
+       default:
+               __builtin_unreachable();
        }
 
        imx93_barebox_entry(fdt);
-- 
2.39.5


Reply via email to