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

Unified · Split

kernel/futex.c+0−17
@@ -32,30 +32,13 @@ · 31 unmodified lines
32 * "But they come in a choice of three flavours!"32 * "But they come in a choice of three flavours!"
33 */33 */
34#include <linux/compat.h>34#include <linux/compat.h>
35#include <linux/slab.h>
36#include <linux/poll.h>
37#include <linux/fs.h>
38#include <linux/file.h>
39#include <linux/jhash.h>35#include <linux/jhash.h>
40#include <linux/init.h>
41#include <linux/futex.h>
42#include <linux/mount.h>
43#include <linux/pagemap.h>36#include <linux/pagemap.h>
44#include <linux/syscalls.h>37#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>
54#include <linux/hugetlb.h>38#include <linux/hugetlb.h>
55#include <linux/freezer.h>39#include <linux/freezer.h>
56#include <linux/memblock.h>40#include <linux/memblock.h>
57#include <linux/fault-inject.h>41#include <linux/fault-inject.h>
58#include <linux/refcount.h>
59 42
60#include <asm/futex.h>43#include <asm/futex.h>
61 44