HomeFreeBSD

nvme: Explicitly align struct nvme_command on an 8 byte boundary

Description

nvme: Explicitly align struct nvme_command on an 8 byte boundary

This was already true for most architectures due to uint64_t structure
members. However, i386 is special in that it only requires 4 byte
alignment for uint64_t. As a result, casts from struct nvme_command
to struct nvmf_fabric_cmd were raising a "cast increases alignment"
warning on i386. Explicitly aligning struct nvme_command pacifies
this warning on i386.

Reported by: rscheff
Sponsored by: Chelsio Communications

Details

Provenance
jhbAuthored on Wed, May 8, 11:05 PM
Parents
rG2ae0f5a4d093: linuxkpi: Make arch_io_*_memtype_wc amd64-only
Branches
Unknown
Tags
Unknown