git: b14c03f808c4 - main - LinuxKPI: define acpi_put_table() in <acpi/acpi.h>
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Apr 2023 08:30:39 UTC
The branch main has been updated by wulf:
URL: https://cgit.FreeBSD.org/src/commit/?id=b14c03f808c415248ae7ec0f0476176ad521d67b
commit b14c03f808c415248ae7ec0f0476176ad521d67b
Author: Vladimir Kondratyev <wulf@FreeBSD.org>
AuthorDate: 2023-04-22 08:29:29 +0000
Commit: Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2023-04-22 08:29:29 +0000
LinuxKPI: define acpi_put_table() in <acpi/acpi.h>
FreeBSD ACPICA calls it AcpiPutTable()
Required by: drm-kmod 5.15-lts
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D39551
---
sys/compat/linuxkpi/common/include/acpi/acpi.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/acpi/acpi.h b/sys/compat/linuxkpi/common/include/acpi/acpi.h
index e996301e27f0..4e187574c82d 100644
--- a/sys/compat/linuxkpi/common/include/acpi/acpi.h
+++ b/sys/compat/linuxkpi/common/include/acpi/acpi.h
@@ -97,4 +97,10 @@ acpi_get_table(ACPI_STRING Signature, UINT32 Instance,
return (AcpiGetTable(Signature, Instance, OutTable));
}
+static inline void
+acpi_put_table(ACPI_TABLE_HEADER *Table)
+{
+ AcpiPutTable(Table);
+}
+
#endif /* _LINUXKPI_ACPI_ACPI_H_ */