summaryrefslogtreecommitdiff
path: root/intel/mm.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-03-31 21:12:14 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-04-28 11:19:15 +0100
commit5966d377320ceecc9a3756e80eef04d0d5241a52 (patch)
tree59d04fa1b8f17122e700dbfc4de20dfcc9154510 /intel/mm.c
parent1756d3d64bd61b1a7e842ad53c60ed37b3153770 (diff)
intel: annotate the private symbols
They are less and easier to track than the public ones. The macro drm_public will be going away by the end of the series. Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'intel/mm.c')
-rw-r--r--intel/mm.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/intel/mm.c b/intel/mm.c
index 10b74bf043b8..9c6766015a01 100644
--- a/intel/mm.c
+++ b/intel/mm.c
@@ -22,13 +22,18 @@
*
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdlib.h>
#include <assert.h>
#include "xf86drm.h"
+#include "libdrm.h"
#include "mm.h"
-void mmDumpMemInfo(const struct mem_block *heap)
+drm_private void mmDumpMemInfo(const struct mem_block *heap)
{
drmMsg("Memory heap %p:\n", (void *)heap);
if (heap == 0) {
@@ -54,7 +59,7 @@ void mmDumpMemInfo(const struct mem_block *heap)
drmMsg("End of memory blocks\n");
}
-struct mem_block *mmInit(int ofs, int size)
+drm_private struct mem_block *mmInit(int ofs, int size)
{
struct mem_block *heap, *block;
@@ -159,8 +164,8 @@ static struct mem_block *SliceBlock(struct mem_block *p,
return p;
}
-struct mem_block *mmAllocMem(struct mem_block *heap, int size, int align2,
- int startSearch)
+drm_private struct mem_block *mmAllocMem(struct mem_block *heap, int size,
+ int align2, int startSearch)
{
struct mem_block *p;
const int mask = (1 << align2) - 1;
@@ -215,7 +220,7 @@ static int Join2Blocks(struct mem_block *p)
return 0;
}
-int mmFreeMem(struct mem_block *b)
+drm_private int mmFreeMem(struct mem_block *b)
{
if (!b)
return 0;
@@ -242,7 +247,7 @@ int mmFreeMem(struct mem_block *b)
return 0;
}
-void mmDestroy(struct mem_block *heap)
+drm_private void mmDestroy(struct mem_block *heap)
{
struct mem_block *p;