HomeFreeBSD

stand: Move i386_devdesc to a union

Description

stand: Move i386_devdesc to a union

Rather than have the magic, hand-crafted fields that have to align with
fields in other structures at the end of i386_devdesc, make it into
anonymous union and adjust the code accordingly. This is safer and
similar to what CAM does.

Sponsored by: Netflix
Reviewed by: kevans, tsoome (prior version)
Differential Revision: https://reviews.freebsd.org/D35965

(cherry picked from commit f197c0bf3e075286ccea32cd12023f3317474c5a)

Details

Provenance
impAuthored on Aug 11 2022, 3:04 PM
Reviewer
kevans
Differential Revision
D35965: stand: Move i386_devdesc to a union
Parents
rG7c1e9eef6f11: stand: Remove unnecessary include
Branches
Unknown
Tags
Unknown