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