fsl_qbman: add explicit fallthrough to qman_destroy_fq()

Fixes clang-16 build breakage:

drivers/staging/fsl_qbman/qman_high.c:1723:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
        case qman_fq_state_oos:
        ^
drivers/staging/fsl_qbman/qman_high.c:1723:2: note: insert '__attribute__((fallthrough));' to silence this warning
        case qman_fq_state_oos:
        ^
        __attribute__((fallthrough));
drivers/staging/fsl_qbman/qman_high.c:1723:2: note: insert 'break;' to avoid fall-through
        case qman_fq_state_oos:
        ^
        break;

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Camelia Groza <camelia.groza@nxp.com>
This commit is contained in:
Vladimir Oltean 2024-01-18 14:30:12 +02:00
parent ea1bcda818
commit 5a641fff57

View File

@ -1776,12 +1776,12 @@ EXPORT_SYMBOL(qman_create_fq);
void qman_destroy_fq(struct qman_fq *fq, u32 flags __maybe_unused)
{
/* We don't need to lock the FQ as it is a pre-condition that the FQ be
* quiesced. Instead, run some checks. */
switch (fq->state) {
case qman_fq_state_parked:
DPA_ASSERT(flags & QMAN_FQ_DESTROY_PARKED);
fallthrough;
case qman_fq_state_oos:
if (fq_isset(fq, QMAN_FQ_FLAG_DYNAMIC_FQID))
qman_release_fqid(fq->fqid);