summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/current.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/current.h')
-rw-r--r--include/asm-ppc/current.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-ppc/current.h b/include/asm-ppc/current.h
index 49415ce9f..8d41501ba 100644
--- a/include/asm-ppc/current.h
+++ b/include/asm-ppc/current.h
@@ -1,3 +1,4 @@
+#ifdef __KERNEL__
#ifndef _PPC_CURRENT_H
#define _PPC_CURRENT_H
@@ -7,3 +8,4 @@
register struct task_struct *current asm ("r2");
#endif /* !(_PPC_CURRENT_H) */
+#endif /* __KERNEL__ */