x86/asm: Merge KSTK_ESP() implementations

Commit:

  263042e463 ("Save user RSP in pt_regs->sp on SYSCALL64 fastpath")

simplified the 64-bit implementation of KSTK_ESP() which is
now identical to 32-bit.  Merge them into a common definition.

No functional change.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250303183111.2245129-1-brgerst@gmail.com
This commit is contained in:
Brian Gerst 2025-03-03 13:31:11 -05:00 • committed by Ingo Molnar
commit 399fd7a264
2 changed files with 1 additions and 9 deletions