aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/genetlink.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index a4b6e148c5de..a28fda7420d9 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -20,15 +20,17 @@
20 20
21static DEFINE_MUTEX(genl_mutex); /* serialization of message processing */ 21static DEFINE_MUTEX(genl_mutex); /* serialization of message processing */
22 22
23static inline void genl_lock(void) 23void genl_lock(void)
24{ 24{
25 mutex_lock(&genl_mutex); 25 mutex_lock(&genl_mutex);
26} 26}
27EXPORT_SYMBOL(genl_lock);
27 28
28static inline void genl_unlock(void) 29void genl_unlock(void)
29{ 30{
30 mutex_unlock(&genl_mutex); 31 mutex_unlock(&genl_mutex);
31} 32}
33EXPORT_SYMBOL(genl_unlock);
32 34
33#define GENL_FAM_TAB_SIZE 16 35#define GENL_FAM_TAB_SIZE 16
34#define GENL_FAM_TAB_MASK (GENL_FAM_TAB_SIZE - 1) 36#define GENL_FAM_TAB_MASK (GENL_FAM_TAB_SIZE - 1)