Page MenuHomeFreeBSD

LinuxKPI: acpi: fix guid_t argument type
ClosedPublic

Authored by bz on Jul 31 2025, 6:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 21, 6:50 PM
Unknown Object (File)
Fri, Aug 21, 6:34 PM
Unknown Object (File)
Fri, Aug 21, 6:27 PM
Unknown Object (File)
Thu, Aug 20, 4:14 PM
Unknown Object (File)
Aug 8 2026, 3:32 PM
Unknown Object (File)
Aug 1 2026, 11:30 PM
Unknown Object (File)
Jul 31 2026, 12:53 PM
Unknown Object (File)
Jul 30 2026, 7:15 PM
Subscribers

Details

Summary

acpi_check_dsm() and acpi_evaluate_dsm_typed() take a guid_t argument
and not a char *. For in-tree Linux based drivers this leads to a
compile error due to a warning. Fix the function argument type and
cast internally.

While this made the long statements in the wrapper functions for *_dsm_*
even less readale split them up using a local variable.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Test Plan

Compile-tested with other changes against drm-kmod 6.1-lts, 6.6-lts, master

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 65859
Build 62742: arc lint + arc unit