HomeFreeBSD

Declare packed struct ata_params as 2-byte-aligned

Description

Declare packed struct ata_params as 2-byte-aligned

This avoids gcc9 warning about unaligned access to the structure when
casting to uint16_t pointer type.

Submitted by: imp
Reviewed by: imp
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D22888

(cherry picked from commit 36947e1f4deacec2a88bba226e9b46efebe8655e)

Details

Provenance
rlibbyAuthored on Dec 21 2019, 2:44 AM
jhbCommitted on Mar 22 2023, 3:12 PM
Reviewer
imp
Differential Revision
D22888: Declare packed struct ata_params as 2-byte-aligned
Parents
rGbc74e50cdf14: Revert "df: remove the unused fstype var"
Branches
Unknown
Tags
Unknown