Skip to contentSkip to conversation

powerpc: fix typo 'CONFIG_PPC_CPU'

PATCH New Paul Bolle 1 participant 1 message May 20, 2014 PowerPC

lore
Share & tools
lore

Paul Bolle

author
#0 lore raw

PATCH 1/1 powerpc: fix typo 'CONFIG_PPC_CPU'

Commit cd64d1697cf0 ("powerpc: mtmsrd not defined") added a check for CONFIG_PPC_CPU were a check for CONFIG_PPC_FPU was clearly intended.

Fixes cd64d1697cf0 ("powerpc: mtmsrd not defined")

---
Entirely untested. This typo was introduced in v2.6.37. Did no one notice? Anyhow, this really needs some testing.

 arch/powerpc/lib/sstep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/lib/sstep.c +1 -1
index c0511c27a733..412dd46dd0b7 100644
@@ -1470,7 +1470,7 @@ int __kprobes emulate_step(struct pt_regs *regs, unsigned int instr)
 				regs->gpr[rd] = byterev_4(val);
 			goto ldst_done;
 
-#ifdef CONFIG_PPC_CPU
+#ifdef CONFIG_PPC_FPU
 		case 535:	/* lfsx */
 		case 567:	/* lfsux */
 			if (!(regs->msr & MSR_FP))
Signature · 1 line
1.9.0