Page MenuHomeFreeBSD

efivar: Add some explicit casts to uuid_t
ClosedPublic

Authored by imp on Apr 25 2025, 7:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 1, 10:31 PM
Unknown Object (File)
Sun, Jun 29, 5:45 AM
Unknown Object (File)
Sat, Jun 28, 10:34 AM
Unknown Object (File)
Thu, Jun 26, 12:35 PM
Unknown Object (File)
Thu, Jun 26, 3:44 AM
Unknown Object (File)
Tue, Jun 24, 9:03 AM
Unknown Object (File)
Sun, Jun 22, 4:37 PM
Unknown Object (File)
Thu, Jun 19, 10:59 AM
Subscribers
None

Details

Summary

Since we know we're type-punning the EFI_GUID to a uuid_t, add some
explicit casts even though, at the moment, we typedef one to the other.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63737
Build 60621: arc lint + arc unit

Event Timeline

imp requested review of this revision.Apr 25 2025, 7:33 PM
imp created this revision.

I would add some type-checking for the conversion. E.g you could define inlines uuid_t * efi_guid_to_uuid(efi_guid_t *) and const uuid_t *const_efi_guid_to_uuid(const efi_guid_t *) and use them instead of manually writing the cast.

This revision was not accepted when it landed; it landed in state Needs Review.May 1 2025, 6:06 PM
This revision was automatically updated to reflect the committed changes.