提交 e3d062a6 编写于 作者: G Gustavo A. R. Silva 提交者: Herbert Xu

crypto: qat - mark expected switch fall-throughs in qat_uclo

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: NGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 9c290c50
...@@ -791,6 +791,7 @@ static int qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle, ...@@ -791,6 +791,7 @@ static int qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle,
case ICP_GPA_ABS: case ICP_GPA_ABS:
case ICP_GPB_ABS: case ICP_GPB_ABS:
ctx_mask = 0; ctx_mask = 0;
/* fall through */
case ICP_GPA_REL: case ICP_GPA_REL:
case ICP_GPB_REL: case ICP_GPB_REL:
return qat_hal_init_gpr(handle, ae, ctx_mask, reg_type, return qat_hal_init_gpr(handle, ae, ctx_mask, reg_type,
...@@ -800,6 +801,7 @@ static int qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle, ...@@ -800,6 +801,7 @@ static int qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle,
case ICP_SR_RD_ABS: case ICP_SR_RD_ABS:
case ICP_DR_RD_ABS: case ICP_DR_RD_ABS:
ctx_mask = 0; ctx_mask = 0;
/* fall through */
case ICP_SR_REL: case ICP_SR_REL:
case ICP_DR_REL: case ICP_DR_REL:
case ICP_SR_RD_REL: case ICP_SR_RD_REL:
...@@ -809,6 +811,7 @@ static int qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle, ...@@ -809,6 +811,7 @@ static int qat_uclo_init_reg(struct icp_qat_fw_loader_handle *handle,
case ICP_SR_WR_ABS: case ICP_SR_WR_ABS:
case ICP_DR_WR_ABS: case ICP_DR_WR_ABS:
ctx_mask = 0; ctx_mask = 0;
/* fall through */
case ICP_SR_WR_REL: case ICP_SR_WR_REL:
case ICP_DR_WR_REL: case ICP_DR_WR_REL:
return qat_hal_init_wr_xfer(handle, ae, ctx_mask, reg_type, return qat_hal_init_wr_xfer(handle, ae, ctx_mask, reg_type,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册