diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-09-02 15:46:17 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-09-02 15:46:17 +0000 |
commit | db1c82c7acb5b175ea32891cb65ecb8a85a96bb4 (patch) | |
tree | f514af17a2cdf3b43f5c929c3b853d6e545a383f /sys | |
parent | 2c6d581511829271c11d81765b9c07cf230c6b9c (diff) |
Although this doesn't seem to cause any issue at the moment, using an
enum type in a __packed struct should be avoided.
Patch by Imre Vadasz
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_iwmreg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_iwmreg.h b/sys/dev/pci/if_iwmreg.h index 8223c3ca5e8..8660fbf0c27 100644 --- a/sys/dev/pci/if_iwmreg.h +++ b/sys/dev/pci/if_iwmreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwmreg.h,v 1.14 2016/07/20 18:24:38 stsp Exp $ */ +/* $OpenBSD: if_iwmreg.h,v 1.15 2016/09/02 15:46:16 stsp Exp $ */ /****************************************************************************** * @@ -3225,14 +3225,14 @@ enum iwm_sf_scenario { /** * Smart Fifo configuration command. - * @state: smart fifo state, types listed in iwm_sf_sate. + * @state: smart fifo state, types listed in enum %iwm_sf_state. * @watermark: Minimum allowed availabe free space in RXF for transient state. * @long_delay_timeouts: aging and idle timer values for each scenario * in long delay state. * @full_on_timeouts: timer values for each scenario in full on state. */ struct iwm_sf_cfg_cmd { - enum iwm_sf_state state; + uint32_t state; uint32_t watermark[IWM_SF_TRANSIENT_STATES_NUMBER]; uint32_t long_delay_timeouts[IWM_SF_NUM_SCENARIO][IWM_SF_NUM_TIMEOUT_TYPES]; uint32_t full_on_timeouts[IWM_SF_NUM_SCENARIO][IWM_SF_NUM_TIMEOUT_TYPES]; |