Skip to contentSkip to conversation

x86: Remove now-unused save_rest

PATCH New Borislav Petkov 2 participants 2 messages Sep 7, 2013 – Sep 10, 2013 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Remove now-unused save_rest

b3af11afe06a ("x86: get rid of pt_regs argument of iopl(2)") dropped PTREGSCALL which was also the last user of save_rest. Drop that now-unused function too.

---
 arch/x86/kernel/entry_64.S | 15 ---------------
 1 file changed, 15 deletions(-)
arch/x86/kernel/entry_64.S +0 -15
index 1b69951a81e2..b077f4cc225a 100644
@@ -487,21 +487,6 @@ ENDPROC(native_usergs_sysret64)
 	TRACE_IRQS_OFF
 	.endm
 
-ENTRY(save_rest)
-	PARTIAL_FRAME 1 (REST_SKIP+8)
-	movq 5*8+16(%rsp), %r11	/* save return address */
-	movq_cfi rbx, RBX+16
-	movq_cfi rbp, RBP+16
-	movq_cfi r12, R12+16
-	movq_cfi r13, R13+16
-	movq_cfi r14, R14+16
-	movq_cfi r15, R15+16
-	movq %r11, 8(%rsp)	/* return address */
-	FIXUP_TOP_OF_STACK %r11, 16
-	ret
-	CFI_ENDPROC
-END(save_rest)
-
 /* save complete stack frame */
 	.pushsection .kprobes.text, "ax"
 ENTRY(save_paranoid)
Signature · 1 line
1.8.0
#1 lore raw

[tip:x86/urgent] x86: Remove now-unused save_rest()

x86: Remove now-unused save_rest()
Commit-ID:  c0da0fa1d7ebe3c86747b10c92e0ac2be1524a8a
Gitweb:     http://git.kernel.org/tip/c0da0fa1d7ebe3c86747b10c92e0ac2be1524a8a
Author:     Borislav Petkov <[email protected]>
AuthorDate: Sat, 7 Sep 2013 11:39:10 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 10 Sep 2013 09:31:55 +0200

x86: Remove now-unused save_rest()

b3af11afe06a ("x86: get rid of pt_regs argument of iopl(2)") dropped PTREGSCALL which was also the last user of save_rest. Drop that now-unused function too.

---
 arch/x86/kernel/entry_64.S | 15 ---------------
 1 file changed, 15 deletions(-)
arch/x86/kernel/entry_64.S +0 -15
index 1b69951..b077f4c 100644
@@ -487,21 +487,6 @@ ENDPROC(native_usergs_sysret64)
 	TRACE_IRQS_OFF
 	.endm
 
-ENTRY(save_rest)
-	PARTIAL_FRAME 1 (REST_SKIP+8)
-	movq 5*8+16(%rsp), %r11	/* save return address */
-	movq_cfi rbx, RBX+16
-	movq_cfi rbp, RBP+16
-	movq_cfi r12, R12+16
-	movq_cfi r13, R13+16
-	movq_cfi r14, R14+16
-	movq_cfi r15, R15+16
-	movq %r11, 8(%rsp)	/* return address */
-	FIXUP_TOP_OF_STACK %r11, 16
-	ret
-	CFI_ENDPROC
-END(save_rest)
-
 /* save complete stack frame */
 	.pushsection .kprobes.text, "ax"
 ENTRY(save_paranoid)