git: 1cfea86b3043 - stable/13 - linuxkpi: Add kmemleak.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Sep 2022 15:09:52 UTC
The branch stable/13 has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=1cfea86b304341a31a66eefa9afddfde9b911d72
commit 1cfea86b304341a31a66eefa9afddfde9b911d72
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-06-23 07:51:34 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-09-07 15:09:02 +0000
linuxkpi: Add kmemleak.h
Provide macros needed for drm-kmod.
Obtain from: OpenBSD (via drm-kmod)
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D35564
(cherry picked from commit 8730ba418e050f622c32766562366729b4d775ad)
---
sys/compat/linuxkpi/common/include/linux/kmemleak.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/kmemleak.h b/sys/compat/linuxkpi/common/include/linux/kmemleak.h
new file mode 100644
index 000000000000..7007e72718c7
--- /dev/null
+++ b/sys/compat/linuxkpi/common/include/linux/kmemleak.h
@@ -0,0 +1,8 @@
+/* Public domain. */
+
+#ifndef _LINUXKPI_LINUX_KMEMLEAK_H_
+#define _LINUXKPI_LINUX_KMEMLEAK_H_
+
+#define kmemleak_update_trace(x)
+
+#endif /* _LINUXKPI_LINUX_KMEMLEAK_H_ */