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)
Wed, Jul 8, 2:41 PM
Unknown Object (File)
Wed, Jul 8, 2:41 PM
Unknown Object (File)
Wed, Jul 8, 5:37 AM
Unknown Object (File)
Mon, Jun 29, 12:14 AM
Unknown Object (File)
Wed, Jun 24, 9:54 AM
Unknown Object (File)
Sat, Jun 20, 2:12 AM
Unknown Object (File)
Fri, Jun 19, 11:38 PM
Unknown Object (File)
May 26 2026, 1:28 AM
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