Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e48b3dee authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Matthew Wilcox
Browse files

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: default avatarMatthew Wilcox <willy@linux.intel.com>
parent 8b91de2e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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'