Skip to content

Commit 7ac139e

Browse files
rodrigosiqueiraKAGA-KOKO
authored andcommitted
x86: Remove unused parameter of prepare_switch_to
Commit e37e43a ("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]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 6454b3b commit 7ac139e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/x86/include/asm/switch_to.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ void __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p,
1616
struct tss_struct *tss);
1717

1818
/* This runs runs on the previous thread's stack. */
19-
static inline void prepare_switch_to(struct task_struct *prev,
20-
struct task_struct *next)
19+
static inline void prepare_switch_to(struct task_struct *next)
2120
{
2221
#ifdef CONFIG_VMAP_STACK
2322
/*
@@ -70,7 +69,7 @@ struct fork_frame {
7069

7170
#define switch_to(prev, next, last) \
7271
do { \
73-
prepare_switch_to(prev, next); \
72+
prepare_switch_to(next); \
7473
\
7574
((last) = __switch_to_asm((prev), (next))); \
7675
} while (0)

0 commit comments

Comments
 (0)