mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2026-01-27 12:35:36 +01:00
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:
parent
ea1bcda818
commit
5a641fff57
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user