git: 22fb73a1b613 - stable/13 - LinuxKPI: tracepoint.h add more defines
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Oct 2022 20:41:31 UTC
The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=22fb73a1b6132fdbaf6bae5ed983fc430bf36964 commit 22fb73a1b6132fdbaf6bae5ed983fc430bf36964 Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-09-21 20:06:44 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-10-17 20:37:03 +0000 LinuxKPI: tracepoint.h add more defines Add some more defines used in drivers to make it easier to compile. Reviewed by: hselasky, emaste Differential Revision: https://reviews.freebsd.org/D36660 (cherry picked from commit f9f4988dc48db76f764f418c35b2f76045ded279) --- 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) \ { \ }