#ifndef _LINUX_LOCAL_LOCK_H
#define _LINUX_LOCAL_LOCK_H
#include <linux/local_lock_internal.h>
#define local_lock_init(lock) …
#define local_lock(lock) …
#define local_lock_irq(lock) …
#define local_lock_irqsave(lock, flags) …
#define local_unlock(lock) …
#define local_unlock_irq(lock) …
#define local_unlock_irqrestore(lock, flags) …
DEFINE_GUARD(local_lock, local_lock_t __percpu*,
local_lock(_T),
local_unlock(_T))
DEFINE_GUARD(local_lock_irq, local_lock_t __percpu*,
local_lock_irq(_T),
local_unlock_irq(_T))
DEFINE_LOCK_GUARD_1(local_lock_irqsave, local_lock_t __percpu,
local_lock_irqsave(_T->lock, _T->flags),
local_unlock_irqrestore(_T->lock, _T->flags),
… }
#define local_lock_nested_bh(_lock) …
#define local_unlock_nested_bh(_lock) …
DEFINE_GUARD(local_lock_nested_bh, local_lock_t __percpu*,
local_lock_nested_bh(_T),
local_unlock_nested_bh(_T))
#endif