From bf3ab1984d157f3d9a4244589d0f26de0290aaab Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Thu, 30 Mar 2023 17:03:40 +0000 Subject: [PATCH] spi: tegra210: quad: Fix fall through warning There is switch-case where one case is falling to the next case. This is creating the compilation warning. Make this fall through as intentional by adding compiler attribute as "fallthrough". Bug 4052299 Change-Id: I0276a4a673284ffbdbc0ca18b650b3c51a4a095f Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2880031 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert GVS: Gerrit_Virtual_Submit --- drivers/spi/spi-tegra210-quad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-tegra210-quad.c b/drivers/spi/spi-tegra210-quad.c index a49543a6..b33ec61b 100644 --- a/drivers/spi/spi-tegra210-quad.c +++ b/drivers/spi/spi-tegra210-quad.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only // -// Copyright (C) 2020 NVIDIA CORPORATION. +// Copyright (C) 2020-2023 NVIDIA CORPORATION. #include #include @@ -1122,6 +1122,7 @@ static int tegra_qspi_combined_seq_xfer(struct tegra_qspi *tqspi, break; } else { transfer_phase++; + fallthrough; } case DATA_TRANSFER: /* Program Command, Address value in register */