Skip to contentSkip to conversation

x86/asm/entry: Make thunk's restore a local label

PATCH In review Borislav Petkov 3 participants 4 messages Jun 23, 2016 – Jul 8, 2016

Subsystems (2)
lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86/asm/entry: Make thunk's restore a local label

From: Borislav Petkov <[email protected]>

No need to have it appear in objdump output.

No functionality change.

---
 arch/x86/entry/thunk_64.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/entry/thunk_64.S +3 -3
index 027aec4a74df..7b506f52a92c 100644
@@ -33,7 +33,7 @@
 	.endif
 
 	call \func
-	jmp  restore
+	jmp  .Lrestore
 	_ASM_NOKPROBE(\name)
 	.endm
 
@@ -54,7 +54,7 @@
 #if defined(CONFIG_TRACE_IRQFLAGS) \
  || defined(CONFIG_DEBUG_LOCK_ALLOC) \
  || defined(CONFIG_PREEMPT)
-restore:
+.Lrestore:
 	popq %r11
 	popq %r10
 	popq %r9
@@ -66,5 +66,5 @@ restore:
 	popq %rdi
 	popq %rbp
 	ret
-	_ASM_NOKPROBE(restore)
+	_ASM_NOKPROBE(.Lrestore)
 #endif
Signature · 1 line
2.5.0.rc2.28.g6003e7f
#1 lore raw
Quoted 16 lines · Borislav Petkov

From: Borislav Petkov <[email protected]>

No need to have it appear in objdump output.

No functionality change.

---
 arch/x86/entry/thunk_64.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/entry/thunk_64.S +0 -0
index 027aec4a74df..7b506f52a92c 100644

arch/x86/entry/thunk_64.S line 36

Quoted 5 lines
arch/x86/entry/thunk_64.S +1 -1
@@ -33,7 +33,7 @@
 	.endif
 
 	call \func
-	jmp  restore
+	jmp  .Lrestore

Btw., could we make it .L_restore to make it more readable - or does the underscore confuse tooling?

Thanks,

Ingo

author maintainer
#2 lore raw

PATCH 1/1 x86/asm/entry: Make thunk's restore a local label

Quoted 2 lines · Ingo Molnar

Btw., could we make it .L_restore to make it more readable - or does the underscore confuse tooling?

Nah, builds fine too.

---
From: Borislav Petkov <[email protected]>
Date: Fri, 8 Jul 2016 16:01:48 +0200
Subject: [PATCH v1.1] x86/asm/entry: Make thunk's restore a local label

No need to have it appear in objdump output.

No functionality change.

---
 arch/x86/entry/thunk_64.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/entry/thunk_64.S +3 -3
index 027aec4a74df..627ecbcb2e62 100644
@@ -33,7 +33,7 @@
 	.endif
 
 	call \func
-	jmp  restore
+	jmp  .L_restore
 	_ASM_NOKPROBE(\name)
 	.endm
 
@@ -54,7 +54,7 @@
 #if defined(CONFIG_TRACE_IRQFLAGS) \
  || defined(CONFIG_DEBUG_LOCK_ALLOC) \
  || defined(CONFIG_PREEMPT)
-restore:
+.L_restore:
 	popq %r11
 	popq %r10
 	popq %r9
@@ -66,5 +66,5 @@ restore:
 	popq %rdi
 	popq %rbp
 	ret
-	_ASM_NOKPROBE(restore)
+	_ASM_NOKPROBE(.L_restore)
 #endif
Signature · 7 lines
2.7.3

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
#3 lore raw
x86/asm/entry: Make thunk's restore a local label
Commit-ID:  9a7e7b571826c4399aa639af4a670642d96d935c
Gitweb:     http://git.kernel.org/tip/9a7e7b571826c4399aa639af4a670642d96d935c
Author:     Borislav Petkov <[email protected]>
AuthorDate: Fri, 8 Jul 2016 16:01:48 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 8 Jul 2016 16:47:01 +0200

x86/asm/entry: Make thunk's restore a local label

No need to have it appear in objdump output.

No functionality change.

Cc Andy Lutomirski <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Brian Gerst <[email protected]>
Cc Denys Vlasenko <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
---
 arch/x86/entry/thunk_64.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/x86/entry/thunk_64.S +3 -3
index 027aec4..627ecbc 100644
@@ -33,7 +33,7 @@
 	.endif
 
 	call \func
-	jmp  restore
+	jmp  .L_restore
 	_ASM_NOKPROBE(\name)
 	.endm
 
@@ -54,7 +54,7 @@
 #if defined(CONFIG_TRACE_IRQFLAGS) \
  || defined(CONFIG_DEBUG_LOCK_ALLOC) \
  || defined(CONFIG_PREEMPT)
-restore:
+.L_restore:
 	popq %r11
 	popq %r10
 	popq %r9
@@ -66,5 +66,5 @@ restore:
 	popq %rdi
 	popq %rbp
 	ret
-	_ASM_NOKPROBE(restore)
+	_ASM_NOKPROBE(.L_restore)
 #endif