History

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.

André Almeida committed 6 years ago

Commit 9a71df41 parent 92613081 file · +0 −17Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/futex.c+0−17
@@ -32,30 +32,13 @@ · 31 unmodified lines
3232 * "But they come in a choice of three flavours!"
3333 */
3434 #include <linux/compat.h>
35−#include <linux/slab.h>
36−#include <linux/poll.h>
37−#include <linux/fs.h>
38−#include <linux/file.h>
3935 #include <linux/jhash.h>
40−#include <linux/init.h>
41−#include <linux/futex.h>
42−#include <linux/mount.h>
4336 #include <linux/pagemap.h>
4437 #include <linux/syscalls.h>
45−#include <linux/signal.h>
46−#include <linux/export.h>
47−#include <linux/magic.h>
48−#include <linux/pid.h>
49−#include <linux/nsproxy.h>
50−#include <linux/ptrace.h>
51−#include <linux/sched/rt.h>
52−#include <linux/sched/wake_q.h>
53−#include <linux/sched/mm.h>
5438 #include <linux/hugetlb.h>
5539 #include <linux/freezer.h>
5640 #include <linux/memblock.h>
5741 #include <linux/fault-inject.h>
58−#include <linux/refcount.h>
5942
6043 #include <asm/futex.h>
6144