[remoteproc] Update remoteproc.h to compile outside linux kernel
Change-Id: Ic9e2d8abad2bb6f6ef18ba9fcee7d3df0ced4f20
diff --git a/include/remoteproc/LICENSE b/include/remoteproc/LICENSE
index dd09c2e..e774f99 100644
--- a/include/remoteproc/LICENSE
+++ b/include/remoteproc/LICENSE
@@ -2,7 +2,7 @@
Remote Processor Framework
Copyright(c) 2011 Texas Instruments, Inc.
- Copyright(c) 2011 Google, Inc.
+ Copyright(c) 2011-2015 Google, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/include/remoteproc/remoteproc.h b/include/remoteproc/remoteproc.h
index 9e7e745..cfc859b 100644
--- a/include/remoteproc/remoteproc.h
+++ b/include/remoteproc/remoteproc.h
@@ -2,7 +2,7 @@
* Remote Processor Framework
*
* Copyright(c) 2011 Texas Instruments, Inc.
- * Copyright(c) 2011 Google, Inc.
+ * Copyright(c) 2011-2015 Google, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -36,11 +36,14 @@
#define REMOTEPROC_H
#include <linux/types.h>
+
+#ifdef __KERNEL__
#include <linux/klist.h>
#include <linux/mutex.h>
#include <linux/virtio.h>
#include <linux/completion.h>
#include <linux/idr.h>
+#endif /* __KERNEL__ */
/**
* struct resource_table - firmware resource table header
@@ -305,6 +308,9 @@
struct fw_rsc_vdev_vring vring[0];
} __packed;
+
+#ifdef __KERNEL__
+
/**
* struct rproc_mem_entry - memory entry descriptor
* @va: virtual address
@@ -502,4 +508,6 @@
return rvdev->rproc;
}
+#endif /* __KERNEL__ */
+
#endif /* REMOTEPROC_H */