HomeFreeBSD

nvme: Bump the alignment of struct nvme_health_information_page to 8

Description

nvme: Bump the alignment of struct nvme_health_information_page to 8

This ensures that embedded uint64_t values used for statistics
counters are aligned when allocating a structure on the stack or as
part of a containing structure. In particular this quiets
-Waddress-of-packed-member warnings from GCC when compiling the code
in nvmfd to update the stats.

Reported by: GCC

Details

Provenance
jhbAuthored on May 7 2024, 8:48 PM
Parents
rGc8703409edb7: nvmecontrol: Fix a sign compare mismatch
Branches
Unknown
Tags
Unknown