# \[PATCH\] plat-iop: fixes fail to build from source

- From: Hector Oron \<hidden\>
- Date: 2011-06-05 18:24:09 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2011/06/8577136
- Thread: https://ratatoskr.run/linux-arm-kernel/2011/06/8577136/t.md

```text
  arch/arm/plat-iop/cp6.c:42: error: 'MODE_MASK' undeclared here (not in a function)
  arch/arm/plat-iop/cp6.c:43: error: 'SVC_MODE' undeclared here (not in a function)

Signed-off-by: Hector Oron <redacted>
---
 arch/arm/plat-iop/cp6.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-iop/cp6.c b/arch/arm/plat-iop/cp6.c
index 9612a87..bab73e2 100644
--- a/arch/arm/plat-iop/cp6.c
+++ b/arch/arm/plat-iop/cp6.c
@@ -18,6 +18,7 @@
  */
 #include <linux/init.h>
 #include <asm/traps.h>
+#include <asm/ptrace.h>
 
 static int cp6_trap(struct pt_regs *regs, unsigned int instr)
 {
-- 
1.7.4.1
```
