From e4dfde8a8f6691b14a618d4226d51e387c7566a2 Mon Sep 17 00:00:00 2001 From: hselasky Date: Wed, 13 Mar 2019 19:24:30 +0000 Subject: [PATCH] Define some RCU debug macros in the LinuxKPI. Submitted by: Johannes Lundberg MFC after: 1 week Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/linux/rcupdate.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/rcupdate.h b/sys/compat/linuxkpi/common/include/linux/rcupdate.h index e4afa5a93f26..dbc77f4f7fcb 100644 --- a/sys/compat/linuxkpi/common/include/linux/rcupdate.h +++ b/sys/compat/linuxkpi/common/include/linux/rcupdate.h @@ -100,4 +100,10 @@ extern void linux_rcu_read_lock(void); extern void linux_rcu_read_unlock(void); extern void linux_synchronize_rcu(void); +/* Empty implementation for !DEBUG */ +#define init_rcu_head(...) +#define destroy_rcu_head(...) +#define init_rcu_head_on_stack(...) +#define destroy_rcu_head_on_stack(...) + #endif /* _LINUX_RCUPDATE_H_ */