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)
Sat, Jun 20, 2:12 AM
Unknown Object (File)
Fri, Jun 19, 11:38 PM
Unknown Object (File)
Tue, May 26, 1:28 AM
Unknown Object (File)
Mon, May 25, 6:40 AM
Unknown Object (File)
Mon, May 25, 5:39 AM
Unknown Object (File)
May 21 2026, 8:34 AM
Unknown Object (File)
May 17 2026, 11:26 PM
Unknown Object (File)
May 17 2026, 11:26 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