From: nieweiqiang Date: Sat, 25 Oct 2025 10:12:58 +0000 (+0800) Subject: crypto: hisilicon/qm - add missing default in switch in qm_vft_data_cfg X-Git-Tag: v6.19-rc1~185^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9124947478319cea3537ca033bae582e97e70d1;p=thirdparty%2Fkernel%2Flinux.git crypto: hisilicon/qm - add missing default in switch in qm_vft_data_cfg Add default case to avoid warnings and meet code style requirements. Signed-off-by: nieweiqiang Signed-off-by: Chenghai Huang Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index c58f67567c123..8533384e3eaac 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -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; } }