summaryrefslogtreecommitdiffstats
path: root/kernel/futex.c
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2020-07-02 17:28:42 -0300
committerThomas Gleixner <tglx@linutronix.de>2020-07-18 01:56:09 +0200
commit9a71df495c3d29dab596bb590e73fd8b20106e2d (patch)
tree4489274aaadb8f5a0c2a427da190dcf02eb6ec97 /kernel/futex.c
parent9261308598ad28b9a8a2237d881833e9f217244e (diff)
downloadlinux-9a71df495c3d29dab596bb590e73fd8b20106e2d.tar.gz
linux-9a71df495c3d29dab596bb590e73fd8b20106e2d.tar.bz2
linux-9a71df495c3d29dab596bb590e73fd8b20106e2d.zip
futex: Remove unused or redundant includes
Since 82af7aca ("Removal of FUTEX_FD"), some includes related to file operations aren't needed anymore. More investigation around the includes showed that a lot of includes aren't required for compilation, possible due to redundant includes. Simplify the code by removing unused includes. Signed-off-by: André Almeida <andrealmeid@collabora.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20200702202843.520764-4-andrealmeid@collabora.com
Diffstat (limited to 'kernel/futex.c')
-rw-r--r--kernel/futex.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index cda91755b77d..4616d4ad609d 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -32,30 +32,13 @@
* "But they come in a choice of three flavours!"
*/
#include <linux/compat.h>
-#include <linux/slab.h>
-#include <linux/poll.h>
-#include <linux/fs.h>
-#include <linux/file.h>
#include <linux/jhash.h>
-#include <linux/init.h>
-#include <linux/futex.h>
-#include <linux/mount.h>
#include <linux/pagemap.h>
#include <linux/syscalls.h>
-#include <linux/signal.h>
-#include <linux/export.h>
-#include <linux/magic.h>
-#include <linux/pid.h>
-#include <linux/nsproxy.h>
-#include <linux/ptrace.h>
-#include <linux/sched/rt.h>
-#include <linux/sched/wake_q.h>
-#include <linux/sched/mm.h>
#include <linux/hugetlb.h>
#include <linux/freezer.h>
#include <linux/memblock.h>
#include <linux/fault-inject.h>
-#include <linux/refcount.h>
#include <asm/futex.h>