summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:53:57 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 06:31:58 +0900
commit43d00cc7405ebda7eaf18b888bbe1db288ca379a (patch)
treee11c055dbce68fadffc0a4a6271da608fd5e2d59
parent4448c2cd5acd431722508d8b020c0f7b6163fae0 (diff)
ipc/ipc_table.c: remove forward declaration
* ipc/ipc_table.c (ipc_table_fill): Remove forward declaration. * ipc/ipc_table.h (ipc_table_fill): Add prototype.
-rw-r--r--ipc/ipc_table.c9
-rw-r--r--ipc/ipc_table.h6
2 files changed, 6 insertions, 9 deletions
diff --git a/ipc/ipc_table.c b/ipc/ipc_table.c
index 78a82f2..90960a8 100644
--- a/ipc/ipc_table.c
+++ b/ipc/ipc_table.c
@@ -42,15 +42,6 @@
#include <kern/slab.h>
#include <vm/vm_kern.h>
-/*
- * Forward declarations
- */
-void ipc_table_fill(
- ipc_table_size_t its,
- unsigned int num,
- unsigned int min,
- vm_size_t elemsize);
-
ipc_table_size_t ipc_table_entries;
const unsigned int ipc_table_entries_size = 512;
diff --git a/ipc/ipc_table.h b/ipc/ipc_table.h
index 695adae..3cc5f56 100644
--- a/ipc/ipc_table.h
+++ b/ipc/ipc_table.h
@@ -108,6 +108,12 @@ extern void ipc_table_free(
vm_size_t size,
vm_offset_t table);
+void ipc_table_fill(
+ ipc_table_size_t its,
+ unsigned int num,
+ unsigned int min,
+ vm_size_t elemsize);
+
#define it_entries_alloc(its) \
((ipc_entry_t) \
ipc_table_alloc((its)->its_size * sizeof(struct ipc_entry)))