X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Flinux%2Fcompat%2Finclude%2Flinux%2Fgenetlink.h;h=f7b96d967c6f53c60c68fe004bda84bd147e21bb;hb=c0338a5ccbe7a1133b833bb2675b400619f32190;hp=e45d08546ef66186b68dd407a0aa69a2449489de;hpb=22bcc0e70becd88bf895c44885d63704affe4284;p=openvswitch diff --git a/datapath/linux/compat/include/linux/genetlink.h b/datapath/linux/compat/include/linux/genetlink.h index e45d0854..f7b96d96 100644 --- a/datapath/linux/compat/include/linux/genetlink.h +++ b/datapath/linux/compat/include/linux/genetlink.h @@ -12,4 +12,12 @@ static inline int lockdep_genl_is_held(void) } #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 */