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)
Mon, Apr 27, 11:14 PM
Unknown Object (File)
Mon, Apr 27, 10:50 PM
Unknown Object (File)
Mon, Apr 27, 6:24 PM
Unknown Object (File)
Sun, Apr 12, 6:15 PM
Unknown Object (File)
Sun, Apr 12, 11:13 AM
Unknown Object (File)
Mar 29 2026, 1:01 AM
Unknown Object (File)
Mar 25 2026, 11:29 PM
Unknown Object (File)
Mar 24 2026, 7:16 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 Not Applicable
Unit
Tests Not Applicable