Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Sep 2025 23:29:01 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c1264b6238c9 - main - LinuxKPI: acpi; fix type to acpi_get_handle()
Message-ID:  <202509052329.585NT1XX029250@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=c1264b6238c97810849bc38818d27c1ade1d4fc1

commit c1264b6238c97810849bc38818d27c1ade1d4fc1
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-09-04 20:23:31 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-09-05 23:24:14 +0000

    LinuxKPI: acpi; fix type to acpi_get_handle()
    
    The native AcpiGetHandle() and acpi_get_handle() take a
    const char * argument for pathname and not an acpi_string (char *).
    For that they spell it out fully as 'const char *', so should we.
    
    Sponsored by:   The FreeBSD Foundation (intially)
    MFC after:      3 days
    Reviewed by:    dumbbell
    Differential Revision:  https://reviews.freebsd.org/D52072
---
 sys/compat/linuxkpi/common/include/acpi/acpi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/acpi/acpi.h b/sys/compat/linuxkpi/common/include/acpi/acpi.h
index 016c7ede0f6e..9bb435591daa 100644
--- a/sys/compat/linuxkpi/common/include/acpi/acpi.h
+++ b/sys/compat/linuxkpi/common/include/acpi/acpi.h
@@ -131,7 +131,7 @@ acpi_format_exception(ACPI_STATUS Exception)
 }
 
 static inline ACPI_STATUS
-acpi_get_handle(ACPI_HANDLE Parent, ACPI_STRING Pathname,
+acpi_get_handle(ACPI_HANDLE Parent, const char *Pathname,
     ACPI_HANDLE *RetHandle)
 {
 	return (AcpiGetHandle(Parent, Pathname, RetHandle));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509052329.585NT1XX029250>