Skip to contentSkip to conversation

typo fix in arch/x86/kernel/asm_offset_64.c

PATCH Nicholas Mc Guire 2 participants 2 messages Oct 27, 2014 – Oct 28, 2014 x86

lore
Share & tools
lore
#0 lore raw

drope double entry for pt_regs_bx

This seems to be a typo - resulting in a double entry in the generated include/generated/asm-offsets.h which is not necessary

Build-tested and booted on x86 64 box to make sure it was not doing any strange magic.... after all it was in the kernel in this form for almost 10 years.

---
 arch/x86/kernel/asm-offsets_64.c |    1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/asm-offsets_64.c +0 -1
index e7c798b..4f9359f 100644
@@ -48,7 +48,6 @@ int main(void)
 
 #define ENTRY(entry) OFFSET(pt_regs_ ## entry, pt_regs, entry)
 	ENTRY(bx);
-	ENTRY(bx);
 	ENTRY(cx);
 	ENTRY(dx);
 	ENTRY(sp);
Signature · 1 line
1.7.10.4
#1 lore raw

[tip:x86/asm] x86/asm: Fix typo in arch/x86/kernel/ asm_offset_64.c

x86/asm: Fix typo in arch/x86/kernel/asm_offset_64.c
Commit-ID:  a1a5831d295f34eceec3ba12c199c2c070e1aaed
Gitweb:     http://git.kernel.org/tip/a1a5831d295f34eceec3ba12c199c2c070e1aaed
Author:     Nicholas Mc Guire <[email protected]>
AuthorDate: Mon, 27 Oct 2014 18:28:05 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 28 Oct 2014 11:24:17 +0100

x86/asm: Fix typo in arch/x86/kernel/asm_offset_64.c

Drop double entry for pt_regs_bx.

This seems to be a typo - resulting in a double entry in the generated include/generated/asm-offsets.h, which is not necessary.

Build-tested and booted on x86 64 box to make sure it was not doing any strange magic.... after all it was in the kernel in this form for almost 10 years.

---
 arch/x86/kernel/asm-offsets_64.c | 1 -
 1 file changed, 1 deletion(-)
arch/x86/kernel/asm-offsets_64.c +0 -1
index e7c798b..4f9359f 100644
@@ -48,7 +48,6 @@ int main(void)
 
 #define ENTRY(entry) OFFSET(pt_regs_ ## entry, pt_regs, entry)
 	ENTRY(bx);
-	ENTRY(bx);
 	ENTRY(cx);
 	ENTRY(dx);
 	ENTRY(sp);