aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-09-21 20:06:44 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-09-22 15:10:03 +0000
commitf9f4988dc48db76f764f418c35b2f76045ded279 (patch)
tree72af10e42f8c02fe1c46754824021c2aba3e7bd4 /sys/compat/linuxkpi
parentfdc7ef3c9831bd4c69a431069aaaad0981ceaf17 (diff)
downloadsrc-f9f4988dc48db76f764f418c35b2f76045ded279.tar.gz
src-f9f4988dc48db76f764f418c35b2f76045ded279.zip
LinuxKPI: tracepoint.h add more defines
Add some more defines used in drivers to make it easier to compile. MFC after: 7 days Reviewed by: hselasky, emaste Differential Revision: https://reviews.freebsd.org/D36660
Diffstat (limited to 'sys/compat/linuxkpi')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/tracepoint.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/tracepoint.h b/sys/compat/linuxkpi/common/include/linux/tracepoint.h
index 0171427439f9..f563b6d99e4e 100644
--- a/sys/compat/linuxkpi/common/include/linux/tracepoint.h
+++ b/sys/compat/linuxkpi/common/include/linux/tracepoint.h
@@ -37,7 +37,13 @@
#define TP_printk(...)
#define TRACE_EVENT(_name, _proto, _args, _struct, _assign, _printk) \
-static void trace_ ## _name(_proto) \
+static inline void trace_ ## _name(_proto) \
+{ \
+}
+
+#define DECLARE_EVENT_CLASS(...)
+#define DEFINE_EVENT(_x, _name, _proto, _args) \
+static inline void trace_ ## _name(_proto) \
{ \
}