Giovanni Cabiddu
994689b8f9
crypto: qat - fix warning on adf_pfvf_pf_proto.c
...
Building the QAT driver with -Wmaybe-uninitialized triggers warnings in
qat_common/adf_pfvf_pf_proto.c. Specifically, the variables blk_type,
blk_byte, and byte_max may be used uninitialized in handle_blkmsg_req():
make M=drivers/crypto/intel/qat W=1 C=2 "KCFLAGS=-Werror" \
KBUILD_CFLAGS_KERNEL=-Wmaybe-uninitialized \
CFLAGS_MODULE=-Wmaybe-uninitialized
...
warning: ‘byte_max’ may be used uninitialized [-Wmaybe-uninitialized]
warning: ‘blk_type’ may be used uninitialized [-Wmaybe-uninitialized]
warning: ‘blk_byte’ may be used uninitialized [-Wmaybe-uninitialized]
Although the caller of handle_blkmsg_req() always provides a req.type
that is handled by the switch, the compiler cannot guarantee this.
Add a default case to the switch statement to handle an invalid req.type.
Fixes: 673184a2a5 ("crypto: qat - introduce support for PFVF block messages")
Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com >
Reviewed-by: Ahsan Atta <ahsan.atta@intel.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2025-12-19 14:47:46 +08:00
..
2025-07-18 20:52:00 +10:00
2023-12-22 12:30:19 +08:00
2025-05-05 18:20:44 +08:00
2023-12-29 11:25:55 +08:00
2025-12-04 17:29:41 -08:00
2025-07-18 20:51:59 +10:00
2025-07-18 20:51:59 +10:00
2025-06-13 17:26:17 +08:00
2025-07-18 20:52:00 +10:00
2025-07-18 20:52:00 +10:00
2025-06-13 17:26:17 +08:00
2024-08-02 21:11:20 +08:00
2024-08-02 21:11:20 +08:00
2024-02-24 08:41:20 +08:00
2023-07-20 22:16:11 +12:00
2024-02-24 08:41:20 +08:00
2023-10-13 18:31:07 +08:00
2025-07-27 22:41:45 +10:00
2025-09-20 20:21:03 +08:00
2024-10-05 13:22:05 +08:00
2023-06-06 12:13:19 +08:00
2025-05-05 18:20:45 +08:00
2025-05-05 18:20:44 +08:00
2024-10-05 13:22:06 +08:00
2025-05-05 18:20:45 +08:00
2023-10-27 18:04:28 +08:00
2023-07-20 22:15:30 +12:00
2023-07-20 22:16:23 +12:00
2024-04-02 10:47:43 +08:00
2024-04-02 10:47:43 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2024-07-06 10:20:00 +10:00
2025-05-23 19:25:47 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2024-04-02 10:47:43 +08:00
2024-04-02 10:47:43 +08:00
2025-07-18 20:52:00 +10:00
2025-07-18 20:52:00 +10:00
2024-04-02 10:47:43 +08:00
2025-05-23 19:25:47 +08:00
2025-07-18 20:51:59 +10:00
2023-10-27 18:04:28 +08:00
2023-10-13 18:31:07 +08:00
2025-03-21 17:33:39 +08:00
2023-10-27 18:04:27 +08:00
2024-04-26 17:26:09 +08:00
2023-12-29 11:25:56 +08:00
2025-07-18 20:51:59 +10:00
2024-04-02 10:47:43 +08:00
2025-07-18 20:51:59 +10:00
2025-07-18 20:51:59 +10:00
2025-05-19 13:48:19 +08:00
2025-05-19 13:48:19 +08:00
2025-07-18 20:51:59 +10:00
2025-07-18 20:51:59 +10:00
2025-08-16 17:22:46 +08:00
2025-07-18 20:52:00 +10:00
2024-02-24 08:41:20 +08:00
2023-07-20 22:16:23 +12:00
2024-02-09 12:57:18 +08:00
2024-02-09 12:57:18 +08:00
2024-02-09 12:57:18 +08:00
2024-10-19 08:44:30 +08:00
2025-07-18 20:52:00 +10:00
2025-11-14 18:15:49 +08:00
2024-04-02 10:47:43 +08:00
2024-04-02 10:47:43 +08:00
2024-02-09 12:57:18 +08:00
2024-08-02 21:11:20 +08:00
2024-02-09 12:57:18 +08:00
2025-12-19 14:47:46 +08:00
2024-04-02 10:47:43 +08:00
2024-08-02 21:11:20 +08:00
2024-08-02 21:11:20 +08:00
2024-02-09 12:57:18 +08:00
2025-11-24 14:15:47 -05:00
2025-07-18 20:51:59 +10:00
2023-10-13 18:31:07 +08:00
2023-10-13 18:31:07 +08:00
2025-07-18 20:52:00 +10:00
2023-10-27 18:04:28 +08:00
2025-07-18 20:52:00 +10:00
2025-07-18 20:52:00 +10:00
2025-11-14 18:15:49 +08:00
2023-12-01 18:03:26 +08:00
2023-10-27 18:04:27 +08:00
2025-07-18 20:52:00 +10:00
2023-10-27 18:04:28 +08:00
2025-06-13 17:26:17 +08:00
2025-08-16 17:22:46 +08:00
2025-08-16 17:22:46 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-08-16 17:22:46 +08:00
2025-08-16 17:22:46 +08:00
2025-07-27 22:41:45 +10:00
2024-04-02 10:47:43 +08:00
2025-11-14 18:15:49 +08:00
2025-05-05 18:20:45 +08:00
2023-12-29 11:25:55 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:45 +08:00
2025-05-05 18:20:45 +08:00
2023-12-22 12:30:19 +08:00
2025-05-05 18:20:44 +08:00
2025-07-18 20:52:00 +10:00
2023-10-27 18:04:28 +08:00
2025-09-13 12:11:06 +08:00
2025-12-19 14:47:46 +08:00
2025-07-27 22:41:45 +10:00
2025-03-21 17:33:39 +08:00
2025-05-05 18:20:44 +08:00
2025-03-21 17:33:39 +08:00
2025-07-27 22:41:45 +10:00
2025-05-05 18:20:44 +08:00
2024-02-24 08:41:20 +08:00
2025-05-05 18:20:44 +08:00
2024-04-02 10:47:43 +08:00
2025-10-31 17:50:43 +08:00