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)
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)
Thu, May 21, 8:34 AM
Unknown Object (File)
Sun, May 17, 11:26 PM
Unknown Object (File)
Sun, May 17, 11:26 PM
Unknown Object (File)
Sun, May 17, 11:08 PM
Unknown Object (File)
Mon, Apr 27, 11:14 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