mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
x86: Remove unused parameter of prepare_switch_to
Commit e37e43a497
("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
This commit is contained in:
parent
6454b3bdd1
commit
7ac139eaa6
1 changed files with 2 additions and 3 deletions
|
@ -16,8 +16,7 @@ void __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p,
|
||||||
struct tss_struct *tss);
|
struct tss_struct *tss);
|
||||||
|
|
||||||
/* This runs runs on the previous thread's stack. */
|
/* This runs runs on the previous thread's stack. */
|
||||||
static inline void prepare_switch_to(struct task_struct *prev,
|
static inline void prepare_switch_to(struct task_struct *next)
|
||||||
struct task_struct *next)
|
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_VMAP_STACK
|
#ifdef CONFIG_VMAP_STACK
|
||||||
/*
|
/*
|
||||||
|
@ -70,7 +69,7 @@ struct fork_frame {
|
||||||
|
|
||||||
#define switch_to(prev, next, last) \
|
#define switch_to(prev, next, last) \
|
||||||
do { \
|
do { \
|
||||||
prepare_switch_to(prev, next); \
|
prepare_switch_to(next); \
|
||||||
\
|
\
|
||||||
((last) = __switch_to_asm((prev), (next))); \
|
((last) = __switch_to_asm((prev), (next))); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
Loading…
Reference in a new issue