#ifndef __GENETLINK_WRAPPER_H #define __GENETLINK_WRAPPER_H 1 #include_next #ifdef CONFIG_PROVE_LOCKING /* No version of the kernel has this function, but our locking scheme depends * on genl_mutex so for clarity we use it where appropriate. */ static inline int lockdep_genl_is_held(void) { return 1; } #endif /* This is also not upstream yet. */ #ifndef genl_dereference #include #define genl_dereference(p) \ rcu_dereference_protected(p, lockdep_genl_is_held()) #endif #endif /* linux/genetlink.h wrapper */