diff options
author | Tianyu Li <tianyu.li@arm.com> | 2023-07-07 06:38:06 +0000 |
---|---|---|
committer | Mohammed HAWARI <momohawari@gmail.com> | 2023-07-25 08:13:26 +0000 |
commit | 4ab1aa31451c0db5deb9c726e82de241da126107 (patch) | |
tree | c77b4becfd3851834055847f0e5940f8be89400f /src/plugins | |
parent | c3f505fe7b7fbecb35494863a6c9de3cad6e6d2d (diff) |
dpdk: fix signed single bit field
clang-16 complains about signed one-bit bitfield value changes
from 1 to -1. Use unsigned type instead.
Type: fix
Signed-off-by: Tianyu Li <tianyu.li@arm.com>
Change-Id: I84f8cf314d36183a5e6f544cd756c01d1d10a1a5
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/dpdk/device/dpdk.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h index 3f02f20237f..53a25b49272 100644 --- a/src/plugins/dpdk/device/dpdk.h +++ b/src/plugins/dpdk/device/dpdk.h @@ -119,14 +119,14 @@ typedef struct u16 n_rx_desc; u16 n_tx_desc; u32 supported_flow_actions; - i32 enable_lsc_int : 1; - i32 enable_rxq_int : 1; - i32 disable_rx_scatter : 1; - i32 program_vlans : 1; - i32 mq_mode_none : 1; - i32 interface_number_from_port_id : 1; - i32 use_intel_phdr_cksum : 1; - i32 int_unmaskable : 1; + u32 enable_lsc_int : 1; + u32 enable_rxq_int : 1; + u32 disable_rx_scatter : 1; + u32 program_vlans : 1; + u32 mq_mode_none : 1; + u32 interface_number_from_port_id : 1; + u32 use_intel_phdr_cksum : 1; + u32 int_unmaskable : 1; } dpdk_driver_t; dpdk_driver_t *dpdk_driver_find (const char *name, const char **desc); |