x86: Remove unused parameter of prepare_switch_to
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- arch/x86/include/asm/switch_to.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/x86/include/asm/switch_to.h +2 -3
@@ -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)
Signature · 1 line
2.15.1
tip-bot for rodrigosiqueira
merge botx86: Remove unused parameter of prepare_switch_to
Commit-ID: 7ac139eaa6bbdb07c547b6916a808eab3897e0e3 Gitweb: https://git.kernel.org/tip/7ac139eaa6bbdb07c547b6916a808eab3897e0e3 Author: rodrigosiqueira <[email protected]> AuthorDate: Fri, 15 Dec 2017 11:15:33 -0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Wed, 27 Dec 2017 20:37:41 +0100
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 <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- arch/x86/include/asm/switch_to.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/x86/include/asm/switch_to.h +2 -3
@@ -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)