提交 e48b3dee 编写于 作者: M Matthew Wilcox 提交者: Matthew Wilcox

Add semaphore.h to kernel_lock.c

kernel_lock.c uses DECLARE_MUTEX, up() and down() without explicitly
including asm/semaphore.h.  This is fragile and leaves it vulnerable
to breakage during header reorganisations.
Signed-off-by: NMatthew Wilcox <willy@linux.intel.com>
上级 8b91de2e
......@@ -8,6 +8,7 @@
#include <linux/smp_lock.h>
#include <linux/module.h>
#include <linux/kallsyms.h>
#include <asm/semaphore.h>
/*
* The 'big kernel semaphore'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册