[PATCH] x86: remove unneeded personality.h includes

From: Sagar Patel
Date: Fri Sep 03 2021 - 00:41:26 EST


Signed-off-by: Sagar Patel <sagarmp@xxxxxxxxxx>
---
arch/x86/ia32/ia32_signal.c | 1 -
arch/x86/kernel/process_32.c | 1 -
arch/x86/kernel/signal.c | 1 -
arch/x86/kernel/sys_ia32.c | 1 -
arch/x86/kernel/sys_x86_64.c | 1 -
arch/x86/um/signal.c | 1 -
6 files changed, 6 deletions(-)

diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
index 5e3d9b7..9b424a6 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
@@ -18,7 +18,6 @@
#include <linux/wait.h>
#include <linux/unistd.h>
#include <linux/stddef.h>
-#include <linux/personality.h>
#include <linux/compat.h>
#include <linux/binfmts.h>
#include <linux/syscalls.h>
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index 4f2f54e..1868b19 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -30,7 +30,6 @@
#include <linux/export.h>
#include <linux/kallsyms.h>
#include <linux/ptrace.h>
-#include <linux/personality.h>
#include <linux/percpu.h>
#include <linux/prctl.h>
#include <linux/ftrace.h>
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
index f4d21e47..1968dee 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
@@ -20,7 +20,6 @@
#include <linux/tracehook.h>
#include <linux/unistd.h>
#include <linux/stddef.h>
-#include <linux/personality.h>
#include <linux/uaccess.h>
#include <linux/user-return-notifier.h>
#include <linux/uprobes.h>
diff --git a/arch/x86/kernel/sys_ia32.c b/arch/x86/kernel/sys_ia32.c
index 6cf6539..5478c5c 100644
--- a/arch/x86/kernel/sys_ia32.c
+++ b/arch/x86/kernel/sys_ia32.c
@@ -32,7 +32,6 @@
#include <linux/mm.h>
#include <linux/uio.h>
#include <linux/poll.h>
-#include <linux/personality.h>
#include <linux/stat.h>
#include <linux/rwsem.h>
#include <linux/compat.h>
diff --git a/arch/x86/kernel/sys_x86_64.c b/arch/x86/kernel/sys_x86_64.c
index 660b788..76c62f8 100644
--- a/arch/x86/kernel/sys_x86_64.c
+++ b/arch/x86/kernel/sys_x86_64.c
@@ -14,7 +14,6 @@
#include <linux/mman.h>
#include <linux/file.h>
#include <linux/utsname.h>
-#include <linux/personality.h>
#include <linux/random.h>
#include <linux/uaccess.h>
#include <linux/elf.h>
diff --git a/arch/x86/um/signal.c b/arch/x86/um/signal.c
index 7c11c9e..8ff849f 100644
--- a/arch/x86/um/signal.c
+++ b/arch/x86/um/signal.c
@@ -5,7 +5,6 @@
*/


-#include <linux/personality.h>
#include <linux/ptrace.h>
#include <linux/kernel.h>
#include <asm/unistd.h>
--
2.7.4