git: f9f4988dc48d - main - LinuxKPI: tracepoint.h add more defines

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Thu, 22 Sep 2022 16:16:27 UTC
The branch main has been updated by bz:

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

commit f9f4988dc48db76f764f418c35b2f76045ded279
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-09-21 20:06:44 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-09-22 15:10:03 +0000

    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
---
 sys/compat/linuxkpi/common/include/linux/tracepoint.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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)				\
 {									\
 }