opnsense-src/sys/dev/qat/qat_api
Dimitry Andric 4b521ea870 Fix enum warnings in qat
This fixes a number of clang 19 warnings:

    sys/dev/qat/qat_api/common/compression/dc_session.c:154:15: error: comparison of different enumeration types ('enum _CpaBoolean' and 'icp_qat_hw_compression_delayed_match_t') [-Werror,-Wenum-compare]
      154 |         if (CPA_TRUE == pService->comp_device_data.enableDmm) {
          |             ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sys/dev/qat/qat_api/common/compression/dc_session.c:285:17: error: comparison of different enumeration types ('enum _CpaBoolean' and 'icp_qat_hw_compression_delayed_match_t') [-Werror,-Wenum-compare]
      285 |                     (CPA_TRUE == pService->comp_device_data.enableDmm) ?
          |                      ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The `enableDmm` field of variable `comp_device_data` is of type
`icp_qat_hw_compression_delayed_match_t`, not `CpaBoolean`. In this
case, we can seamlessly replace the value with
`ICP_QAT_HW_COMPRESSION_DELAYED_MATCH_ENABLED`, which is numerically
equal to `CPA_TRUE`.

MFC after:	3 days

(cherry picked from commit 357378bbdedf24ce2b90e9bd831af4a9db3ec70a)
2024-08-04 12:21:28 +02:00
..
common Fix enum warnings in qat 2024-08-04 12:21:28 +02:00
device sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
firmware/include qat: Intel 4xxx Series driver API extension 2023-09-13 05:12:52 -04:00
include qat: Fix two typos in source code comments 2023-12-20 08:35:25 +01:00
qat_direct/include sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
qat_kernel/src sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
qat_utils sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00
freebsd_module.c sys: Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:24 -06:00