Skip to content

Commit 58d4a78

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/lib: use call_on_stack() macro
Reviewed-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
1 parent 0f541cc commit 58d4a78

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

arch/s390/lib/test_unwind.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static struct unwindme *unwindme;
120120
#define UWM_REGS 0x2 /* Pass regs to test_unwind(). */
121121
#define UWM_SP 0x4 /* Pass sp to test_unwind(). */
122122
#define UWM_CALLER 0x8 /* Unwind starting from caller. */
123-
#define UWM_SWITCH_STACK 0x10 /* Use CALL_ON_STACK. */
123+
#define UWM_SWITCH_STACK 0x10 /* Use call_on_stack. */
124124
#define UWM_IRQ 0x20 /* Unwind from irq context. */
125125
#define UWM_PGM 0x40 /* Unwind from program check handler. */
126126

@@ -211,7 +211,8 @@ static noinline int unwindme_func2(struct unwindme *u)
211211
if (u->flags & UWM_SWITCH_STACK) {
212212
local_irq_save(flags);
213213
local_mcck_disable();
214-
rc = CALL_ON_STACK(unwindme_func3, S390_lowcore.nodat_stack, 1, u);
214+
rc = call_on_stack(1, S390_lowcore.nodat_stack,
215+
int, unwindme_func3, struct unwindme *, u);
215216
local_mcck_enable();
216217
local_irq_restore(flags);
217218
return rc;

0 commit comments

Comments
 (0)