mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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: Matthew Wilcox <willy@linux.intel.com>
This commit is contained in:
parent
8b91de2e58
commit
e48b3deee4
1 changed files with 1 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue