summaryrefslogtreecommitdiff
path: root/include/asm-powerpc/tce.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/tce.h')
-rw-r--r--include/asm-powerpc/tce.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/tce.h b/include/asm-powerpc/tce.h
index 980a094fd5a7..6fa200ad7a7f 100644
--- a/include/asm-powerpc/tce.h
+++ b/include/asm-powerpc/tce.h
@@ -20,6 +20,7 @@
#ifndef _ASM_POWERPC_TCE_H
#define _ASM_POWERPC_TCE_H
+#ifdef __KERNEL__
/*
* Tces come in two formats, one for the virtual bus and a different
@@ -61,4 +62,5 @@ union tce_entry {
};
+#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_TCE_H */