Skip to content

Commit 9a71df4

Browse files
andrealmeidKAGA-KOKO
authored andcommitted
futex: Remove unused or redundant includes
Since 82af7ac ("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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 9261308 commit 9a71df4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

kernel/futex.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,13 @@
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

0 commit comments

Comments
 (0)