]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: hisilicon/qm - add missing default in switch in qm_vft_data_cfg
authornieweiqiang <nieweiqiang@huawei.com>
Sat, 25 Oct 2025 10:12:58 +0000 (18:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Oct 2025 09:50:43 +0000 (17:50 +0800)
Add default case to avoid warnings and meet code style requirements.

Signed-off-by: nieweiqiang <nieweiqiang@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c

index c58f67567c123ac62beca40b8ee4dd9e0e86c411..8533384e3eaacc00bc815e39c00f2cea73d9cc67 100644 (file)
@@ -1286,6 +1286,13 @@ static void qm_vft_data_cfg(struct hisi_qm *qm, enum vft_type type, u32 base,
                                (factor->cbs_s << QM_SHAPER_FACTOR_CBS_S_SHIFT);
                        }
                        break;
+               /*
+                * Note: The current logic only needs to handle the above three types
+                * If new types are added, they need to be supplemented here,
+                * otherwise undefined behavior may occur.
+                */
+               default:
+                       break;
                }
        }