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, Oct 15, 11:35 PM
Unknown Object (File)
Sun, Oct 12, 11:37 PM
Unknown Object (File)
Sun, Oct 12, 11:37 PM
Unknown Object (File)
Sun, Oct 12, 11:37 PM
Unknown Object (File)
Sun, Oct 12, 12:10 PM
Unknown Object (File)
Sat, Oct 4, 7:37 AM
Unknown Object (File)
Mon, Sep 29, 9:48 AM
Unknown Object (File)
Sun, Sep 28, 11:18 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