HomeFreeBSD

loader/efi: Make gcc friendlier by move md_dev

Description

loader/efi: Make gcc friendlier by move md_dev

Move the extern struct devsw md_dev out of the function. gcc is happier
with this arrangemnt often. However, we really should move it to a
header file, but that requires a bit of a rework of md support and
config.

Sponsored by: Netflix
Reviewed by: manu, tsoome
Differential Revision: https://reviews.freebsd.org/D44008

(cherry picked from commit b2822c40f61d351bf8a4cac87e12521db06ff962)

Details

Provenance
impAuthored on Feb 21 2024, 3:50 PM
Reviewer
manu
Differential Revision
D44008: loader/efi: Make gcc friendlier by move md_dev
Parents
rGe9620c27f176: loader: Retire CTASSERT
Branches
Unknown
Tags
Unknown