aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/memrar/memrar.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/memrar/memrar.h')
-rw-r--r--drivers/staging/memrar/memrar.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/memrar/memrar.h b/drivers/staging/memrar/memrar.h
index 0b735b827c0..07e6c36a6ce 100644
--- a/drivers/staging/memrar/memrar.h
+++ b/drivers/staging/memrar/memrar.h
@@ -95,6 +95,8 @@ struct RAR_buffer {
dma_addr_t bus_address;
};
+#if defined(CONFIG_MRST_RAR_HANDLER) || defined(CONFIG_MRST_RAR_HANDLER_MODULE)
+
/**
* rar_reserve() - reserve RAR buffers
* @buffers: array of RAR_buffers where type and size of buffers to
@@ -149,6 +151,11 @@ extern size_t rar_release(struct RAR_buffer *buffers,
extern size_t rar_handle_to_bus(struct RAR_buffer *buffers,
size_t count);
+#else
+#define rar_reserve(a, b) ((size_t)NULL)
+#define rar_release(a, b) ((size_t)NULL)
+#define rar_handle_to_bus(a, b) ((size_t)NULL)
+#endif
#endif /* __KERNEL__ */