aboutsummaryrefslogtreecommitdiff
path: root/include/asm-powerpc/hvcserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/hvcserver.h')
-rw-r--r--include/asm-powerpc/hvcserver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/hvcserver.h b/include/asm-powerpc/hvcserver.h
index aecba966579..67d7da3a4da 100644
--- a/include/asm-powerpc/hvcserver.h
+++ b/include/asm-powerpc/hvcserver.h
@@ -21,6 +21,7 @@
#ifndef _PPC64_HVCSERVER_H
#define _PPC64_HVCSERVER_H
+#ifdef __KERNEL__
#include <linux/list.h>
@@ -54,4 +55,5 @@ extern int hvcs_register_connection(uint32_t unit_address,
uint32_t p_partition_ID, uint32_t p_unit_address);
extern int hvcs_free_connection(uint32_t unit_address);
+#endif /* __KERNEL__ */
#endif /* _PPC64_HVCSERVER_H */