summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrodrigosiqueira <rodrigosiqueiramelo@gmail.com>2017-12-15 11:15:33 -0200
committerThomas Gleixner <tglx@linutronix.de>2017-12-27 20:37:41 +0100
commit7ac139eaa6bbdb07c547b6916a808eab3897e0e3 (patch)
tree39ace205b7f1bb16848e2b892b546071ec017990
parent6454b3bdd138dfc640deb5e7b9a0668fca2d55dd (diff)
downloadlinux-7ac139eaa6bbdb07c547b6916a808eab3897e0e3.tar.gz
linux-7ac139eaa6bbdb07c547b6916a808eab3897e0e3.tar.bz2
linux-7ac139eaa6bbdb07c547b6916a808eab3897e0e3.zip
x86: Remove unused parameter of prepare_switch_to
Commit e37e43a497d5 ("x86/mm/64: Enable vmapped stacks (CONFIG_HAVE_ARCH_VMAP_STACK=y)") added prepare_switch_to with one extra parameter which is not used by the function, remove it. Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: kernel-janitors@vger.kernel.org Link: https://lkml.kernel.org/r/20171215131533.hp6kqebw45o7uvsb@smtp.gmail.com
-rw-r--r--arch/x86/include/asm/switch_to.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/x86/include/asm/switch_to.h b/arch/x86/include/asm/switch_to.h
index 8c6bd6863db9..1008d4622709 100644
--- a/arch/x86/include/asm/switch_to.h
+++ b/arch/x86/include/asm/switch_to.h
@@ -16,8 +16,7 @@ void __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p,
struct tss_struct *tss);
/* This runs runs on the previous thread's stack. */
-static inline void prepare_switch_to(struct task_struct *prev,
- struct task_struct *next)
+static inline void prepare_switch_to(struct task_struct *next)
{
#ifdef CONFIG_VMAP_STACK
/*
@@ -70,7 +69,7 @@ struct fork_frame {
#define switch_to(prev, next, last) \
do { \
- prepare_switch_to(prev, next); \
+ prepare_switch_to(next); \
\
((last) = __switch_to_asm((prev), (next))); \
} while (0)