git: 8730ba418e05 - main - linuxkpi: Add kmemleak.h

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 29 Jun 2022 07:55:52 UTC
The branch main has been updated by manu:

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

commit 8730ba418e050f622c32766562366729b4d775ad
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-06-23 07:51:34 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-06-29 07:54:57 +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
---
 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_ */