aboutsummaryrefslogtreecommitdiffstats
path: root/radeon
diff options
context:
space:
mode:
authorEmil Velikov2015-03-31 16:32:11 -0500
committerEmil Velikov2015-04-28 05:19:15 -0500
commit0f8da82500ec542e269092c0718479e25eaff5f6 (patch)
tree4bfdf0fe56674bd42926f6f4607331d1468d08dd /radeon
parent104c895f650cac7741c12e10ee78bb2fca2cbd49 (diff)
downloadexternal-libdrm-0f8da82500ec542e269092c0718479e25eaff5f6.tar.gz
external-libdrm-0f8da82500ec542e269092c0718479e25eaff5f6.tar.xz
external-libdrm-0f8da82500ec542e269092c0718479e25eaff5f6.zip
drm: remove drm_public macro
Some compilers (like the Oracle Studio), require that the function declaration must be annotated with the same visibility attribute as the definition. As annotating functions with drm_public is no longer required just remove the macro. Cc: Ben Skeggs <bskeggs@redhat.com> Cc: Damien Lespiau <damien.lespiau@intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com> Cc: Michel Dänzer <michel.daenzer@amd.com> Cc: Rob Clark <robdclark@gmail.com> Cc: Thierry Reding <treding@nvidia.com> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'radeon')
-rw-r--r--radeon/radeon_bo.c28
-rw-r--r--radeon/radeon_bo_gem.c16
-rw-r--r--radeon/radeon_cs.c24
-rw-r--r--radeon/radeon_cs_gem.c4
-rw-r--r--radeon/radeon_cs_space.c8
-rw-r--r--radeon/radeon_surface.c8
6 files changed, 44 insertions, 44 deletions
diff --git a/radeon/radeon_bo.c b/radeon/radeon_bo.c
index 02a2d83d..447f9280 100644
--- a/radeon/radeon_bo.c
+++ b/radeon/radeon_bo.c
@@ -36,7 +36,7 @@
36#include <radeon_bo.h> 36#include <radeon_bo.h>
37#include <radeon_bo_int.h> 37#include <radeon_bo_int.h>
38 38
39drm_public void radeon_bo_debug(struct radeon_bo *bo, const char *op) 39void radeon_bo_debug(struct radeon_bo *bo, const char *op)
40{ 40{
41 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 41 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
42 42
@@ -44,7 +44,7 @@ drm_public void radeon_bo_debug(struct radeon_bo *bo, const char *op)
44 op, bo, bo->handle, boi->size, boi->cref); 44 op, bo, bo->handle, boi->size, boi->cref);
45} 45}
46 46
47drm_public struct radeon_bo * 47struct radeon_bo *
48radeon_bo_open(struct radeon_bo_manager *bom, uint32_t handle, uint32_t size, 48radeon_bo_open(struct radeon_bo_manager *bom, uint32_t handle, uint32_t size,
49 uint32_t alignment, uint32_t domains, uint32_t flags) 49 uint32_t alignment, uint32_t domains, uint32_t flags)
50{ 50{
@@ -53,14 +53,14 @@ radeon_bo_open(struct radeon_bo_manager *bom, uint32_t handle, uint32_t size,
53 return bo; 53 return bo;
54} 54}
55 55
56drm_public void radeon_bo_ref(struct radeon_bo *bo) 56void radeon_bo_ref(struct radeon_bo *bo)
57{ 57{
58 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 58 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
59 boi->cref++; 59 boi->cref++;
60 boi->bom->funcs->bo_ref(boi); 60 boi->bom->funcs->bo_ref(boi);
61} 61}
62 62
63drm_public struct radeon_bo *radeon_bo_unref(struct radeon_bo *bo) 63struct radeon_bo *radeon_bo_unref(struct radeon_bo *bo)
64{ 64{
65 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 65 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
66 if (bo == NULL) 66 if (bo == NULL)
@@ -70,19 +70,19 @@ drm_public struct radeon_bo *radeon_bo_unref(struct radeon_bo *bo)
70 return boi->bom->funcs->bo_unref(boi); 70 return boi->bom->funcs->bo_unref(boi);
71} 71}
72 72
73drm_public int radeon_bo_map(struct radeon_bo *bo, int write) 73int radeon_bo_map(struct radeon_bo *bo, int write)
74{ 74{
75 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 75 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
76 return boi->bom->funcs->bo_map(boi, write); 76 return boi->bom->funcs->bo_map(boi, write);
77} 77}
78 78
79drm_public int radeon_bo_unmap(struct radeon_bo *bo) 79int radeon_bo_unmap(struct radeon_bo *bo)
80{ 80{
81 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 81 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
82 return boi->bom->funcs->bo_unmap(boi); 82 return boi->bom->funcs->bo_unmap(boi);
83} 83}
84 84
85drm_public int radeon_bo_wait(struct radeon_bo *bo) 85int radeon_bo_wait(struct radeon_bo *bo)
86{ 86{
87 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 87 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
88 if (!boi->bom->funcs->bo_wait) 88 if (!boi->bom->funcs->bo_wait)
@@ -90,13 +90,13 @@ drm_public int radeon_bo_wait(struct radeon_bo *bo)
90 return boi->bom->funcs->bo_wait(boi); 90 return boi->bom->funcs->bo_wait(boi);
91} 91}
92 92
93drm_public int radeon_bo_is_busy(struct radeon_bo *bo, uint32_t *domain) 93int radeon_bo_is_busy(struct radeon_bo *bo, uint32_t *domain)
94{ 94{
95 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 95 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
96 return boi->bom->funcs->bo_is_busy(boi, domain); 96 return boi->bom->funcs->bo_is_busy(boi, domain);
97} 97}
98 98
99drm_public int 99int
100radeon_bo_set_tiling(struct radeon_bo *bo, 100radeon_bo_set_tiling(struct radeon_bo *bo,
101 uint32_t tiling_flags, uint32_t pitch) 101 uint32_t tiling_flags, uint32_t pitch)
102{ 102{
@@ -104,7 +104,7 @@ radeon_bo_set_tiling(struct radeon_bo *bo,
104 return boi->bom->funcs->bo_set_tiling(boi, tiling_flags, pitch); 104 return boi->bom->funcs->bo_set_tiling(boi, tiling_flags, pitch);
105} 105}
106 106
107drm_public int 107int
108radeon_bo_get_tiling(struct radeon_bo *bo, 108radeon_bo_get_tiling(struct radeon_bo *bo,
109 uint32_t *tiling_flags, uint32_t *pitch) 109 uint32_t *tiling_flags, uint32_t *pitch)
110{ 110{
@@ -112,7 +112,7 @@ radeon_bo_get_tiling(struct radeon_bo *bo,
112 return boi->bom->funcs->bo_get_tiling(boi, tiling_flags, pitch); 112 return boi->bom->funcs->bo_get_tiling(boi, tiling_flags, pitch);
113} 113}
114 114
115drm_public int radeon_bo_is_static(struct radeon_bo *bo) 115int radeon_bo_is_static(struct radeon_bo *bo)
116{ 116{
117 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 117 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
118 if (boi->bom->funcs->bo_is_static) 118 if (boi->bom->funcs->bo_is_static)
@@ -120,19 +120,19 @@ drm_public int radeon_bo_is_static(struct radeon_bo *bo)
120 return 0; 120 return 0;
121} 121}
122 122
123drm_public int 123int
124radeon_bo_is_referenced_by_cs(struct radeon_bo *bo, struct radeon_cs *cs) 124radeon_bo_is_referenced_by_cs(struct radeon_bo *bo, struct radeon_cs *cs)
125{ 125{
126 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 126 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
127 return boi->cref > 1; 127 return boi->cref > 1;
128} 128}
129 129
130drm_public uint32_t radeon_bo_get_handle(struct radeon_bo *bo) 130uint32_t radeon_bo_get_handle(struct radeon_bo *bo)
131{ 131{
132 return bo->handle; 132 return bo->handle;
133} 133}
134 134
135drm_public uint32_t radeon_bo_get_src_domain(struct radeon_bo *bo) 135uint32_t radeon_bo_get_src_domain(struct radeon_bo *bo)
136{ 136{
137 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 137 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
138 uint32_t src_domain; 138 uint32_t src_domain;
diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c
index b48cf540..7fdd437a 100644
--- a/radeon/radeon_bo_gem.c
+++ b/radeon/radeon_bo_gem.c
@@ -283,7 +283,7 @@ static struct radeon_bo_funcs bo_gem_funcs = {
283 bo_is_busy, 283 bo_is_busy,
284}; 284};
285 285
286drm_public struct radeon_bo_manager *radeon_bo_manager_gem_ctor(int fd) 286struct radeon_bo_manager *radeon_bo_manager_gem_ctor(int fd)
287{ 287{
288 struct bo_manager_gem *bomg; 288 struct bo_manager_gem *bomg;
289 289
@@ -296,7 +296,7 @@ drm_public struct radeon_bo_manager *radeon_bo_manager_gem_ctor(int fd)
296 return (struct radeon_bo_manager*)bomg; 296 return (struct radeon_bo_manager*)bomg;
297} 297}
298 298
299drm_public void radeon_bo_manager_gem_dtor(struct radeon_bo_manager *bom) 299void radeon_bo_manager_gem_dtor(struct radeon_bo_manager *bom)
300{ 300{
301 struct bo_manager_gem *bomg = (struct bo_manager_gem*)bom; 301 struct bo_manager_gem *bomg = (struct bo_manager_gem*)bom;
302 302
@@ -306,21 +306,21 @@ drm_public void radeon_bo_manager_gem_dtor(struct radeon_bo_manager *bom)
306 free(bomg); 306 free(bomg);
307} 307}
308 308
309drm_public uint32_t 309uint32_t
310radeon_gem_name_bo(struct radeon_bo *bo) 310radeon_gem_name_bo(struct radeon_bo *bo)
311{ 311{
312 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; 312 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
313 return bo_gem->name; 313 return bo_gem->name;
314} 314}
315 315
316drm_public void * 316void *
317radeon_gem_get_reloc_in_cs(struct radeon_bo *bo) 317radeon_gem_get_reloc_in_cs(struct radeon_bo *bo)
318{ 318{
319 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; 319 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
320 return &bo_gem->reloc_in_cs; 320 return &bo_gem->reloc_in_cs;
321} 321}
322 322
323drm_public int 323int
324radeon_gem_get_kernel_name(struct radeon_bo *bo, uint32_t *name) 324radeon_gem_get_kernel_name(struct radeon_bo *bo, uint32_t *name)
325{ 325{
326 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; 326 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
@@ -342,7 +342,7 @@ radeon_gem_get_kernel_name(struct radeon_bo *bo, uint32_t *name)
342 return 0; 342 return 0;
343} 343}
344 344
345drm_public int 345int
346radeon_gem_set_domain(struct radeon_bo *bo, uint32_t read_domains, uint32_t write_domain) 346radeon_gem_set_domain(struct radeon_bo *bo, uint32_t read_domains, uint32_t write_domain)
347{ 347{
348 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo; 348 struct radeon_bo_int *boi = (struct radeon_bo_int *)bo;
@@ -360,7 +360,7 @@ radeon_gem_set_domain(struct radeon_bo *bo, uint32_t read_domains, uint32_t writ
360 return r; 360 return r;
361} 361}
362 362
363drm_public int radeon_gem_prime_share_bo(struct radeon_bo *bo, int *handle) 363int radeon_gem_prime_share_bo(struct radeon_bo *bo, int *handle)
364{ 364{
365 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo; 365 struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)bo;
366 int ret; 366 int ret;
@@ -369,7 +369,7 @@ drm_public int radeon_gem_prime_share_bo(struct radeon_bo *bo, int *handle)
369 return ret; 369 return ret;
370} 370}
371 371
372drm_public struct radeon_bo * 372struct radeon_bo *
373radeon_gem_bo_open_prime(struct radeon_bo_manager *bom, int fd_handle, uint32_t size) 373radeon_gem_bo_open_prime(struct radeon_bo_manager *bom, int fd_handle, uint32_t size)
374{ 374{
375 struct radeon_bo_gem *bo; 375 struct radeon_bo_gem *bo;
diff --git a/radeon/radeon_cs.c b/radeon/radeon_cs.c
index 142b71f7..dffb869f 100644
--- a/radeon/radeon_cs.c
+++ b/radeon/radeon_cs.c
@@ -6,14 +6,14 @@
6#include "radeon_cs.h" 6#include "radeon_cs.h"
7#include "radeon_cs_int.h" 7#include "radeon_cs_int.h"
8 8
9drm_public struct radeon_cs * 9struct radeon_cs *
10radeon_cs_create(struct radeon_cs_manager *csm, uint32_t ndw) 10radeon_cs_create(struct radeon_cs_manager *csm, uint32_t ndw)
11{ 11{
12 struct radeon_cs_int *csi = csm->funcs->cs_create(csm, ndw); 12 struct radeon_cs_int *csi = csm->funcs->cs_create(csm, ndw);
13 return (struct radeon_cs *)csi; 13 return (struct radeon_cs *)csi;
14} 14}
15 15
16drm_public int 16int
17radeon_cs_write_reloc(struct radeon_cs *cs, struct radeon_bo *bo, 17radeon_cs_write_reloc(struct radeon_cs *cs, struct radeon_bo *bo,
18 uint32_t read_domain, uint32_t write_domain, 18 uint32_t read_domain, uint32_t write_domain,
19 uint32_t flags) 19 uint32_t flags)
@@ -27,7 +27,7 @@ radeon_cs_write_reloc(struct radeon_cs *cs, struct radeon_bo *bo,
27 flags); 27 flags);
28} 28}
29 29
30drm_public int 30int
31radeon_cs_begin(struct radeon_cs *cs, uint32_t ndw, 31radeon_cs_begin(struct radeon_cs *cs, uint32_t ndw,
32 const char *file, const char *func, int line) 32 const char *file, const char *func, int line)
33{ 33{
@@ -35,7 +35,7 @@ radeon_cs_begin(struct radeon_cs *cs, uint32_t ndw,
35 return csi->csm->funcs->cs_begin(csi, ndw, file, func, line); 35 return csi->csm->funcs->cs_begin(csi, ndw, file, func, line);
36} 36}
37 37
38drm_public int 38int
39radeon_cs_end(struct radeon_cs *cs, 39radeon_cs_end(struct radeon_cs *cs,
40 const char *file, const char *func, int line) 40 const char *file, const char *func, int line)
41{ 41{
@@ -43,37 +43,37 @@ radeon_cs_end(struct radeon_cs *cs,
43 return csi->csm->funcs->cs_end(csi, file, func, line); 43 return csi->csm->funcs->cs_end(csi, file, func, line);
44} 44}
45 45
46drm_public int radeon_cs_emit(struct radeon_cs *cs) 46int radeon_cs_emit(struct radeon_cs *cs)
47{ 47{
48 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 48 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
49 return csi->csm->funcs->cs_emit(csi); 49 return csi->csm->funcs->cs_emit(csi);
50} 50}
51 51
52drm_public int radeon_cs_destroy(struct radeon_cs *cs) 52int radeon_cs_destroy(struct radeon_cs *cs)
53{ 53{
54 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 54 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
55 return csi->csm->funcs->cs_destroy(csi); 55 return csi->csm->funcs->cs_destroy(csi);
56} 56}
57 57
58drm_public int radeon_cs_erase(struct radeon_cs *cs) 58int radeon_cs_erase(struct radeon_cs *cs)
59{ 59{
60 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 60 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
61 return csi->csm->funcs->cs_erase(csi); 61 return csi->csm->funcs->cs_erase(csi);
62} 62}
63 63
64drm_public int radeon_cs_need_flush(struct radeon_cs *cs) 64int radeon_cs_need_flush(struct radeon_cs *cs)
65{ 65{
66 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 66 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
67 return csi->csm->funcs->cs_need_flush(csi); 67 return csi->csm->funcs->cs_need_flush(csi);
68} 68}
69 69
70drm_public void radeon_cs_print(struct radeon_cs *cs, FILE *file) 70void radeon_cs_print(struct radeon_cs *cs, FILE *file)
71{ 71{
72 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 72 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
73 csi->csm->funcs->cs_print(csi, file); 73 csi->csm->funcs->cs_print(csi, file);
74} 74}
75 75
76drm_public void 76void
77radeon_cs_set_limit(struct radeon_cs *cs, uint32_t domain, uint32_t limit) 77radeon_cs_set_limit(struct radeon_cs *cs, uint32_t domain, uint32_t limit)
78{ 78{
79 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 79 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
@@ -83,7 +83,7 @@ radeon_cs_set_limit(struct radeon_cs *cs, uint32_t domain, uint32_t limit)
83 csi->csm->gart_limit = limit; 83 csi->csm->gart_limit = limit;
84} 84}
85 85
86drm_public void radeon_cs_space_set_flush(struct radeon_cs *cs, 86void radeon_cs_space_set_flush(struct radeon_cs *cs,
87 void (*fn)(void *), void *data) 87 void (*fn)(void *), void *data)
88{ 88{
89 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 89 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
@@ -91,7 +91,7 @@ drm_public void radeon_cs_space_set_flush(struct radeon_cs *cs,
91 csi->space_flush_data = data; 91 csi->space_flush_data = data;
92} 92}
93 93
94drm_public uint32_t radeon_cs_get_id(struct radeon_cs *cs) 94uint32_t radeon_cs_get_id(struct radeon_cs *cs)
95{ 95{
96 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 96 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
97 return csi->id; 97 return csi->id;
diff --git a/radeon/radeon_cs_gem.c b/radeon/radeon_cs_gem.c
index cff2415d..1962e915 100644
--- a/radeon/radeon_cs_gem.c
+++ b/radeon/radeon_cs_gem.c
@@ -539,7 +539,7 @@ static int radeon_get_device_id(int fd, uint32_t *device_id)
539 return r; 539 return r;
540} 540}
541 541
542drm_public struct radeon_cs_manager *radeon_cs_manager_gem_ctor(int fd) 542struct radeon_cs_manager *radeon_cs_manager_gem_ctor(int fd)
543{ 543{
544 struct radeon_cs_manager_gem *csm; 544 struct radeon_cs_manager_gem *csm;
545 545
@@ -553,7 +553,7 @@ drm_public struct radeon_cs_manager *radeon_cs_manager_gem_ctor(int fd)
553 return &csm->base; 553 return &csm->base;
554} 554}
555 555
556drm_public void radeon_cs_manager_gem_dtor(struct radeon_cs_manager *csm) 556void radeon_cs_manager_gem_dtor(struct radeon_cs_manager *csm)
557{ 557{
558 free(csm); 558 free(csm);
559} 559}
diff --git a/radeon/radeon_cs_space.c b/radeon/radeon_cs_space.c
index 1a6ea28e..69287be5 100644
--- a/radeon/radeon_cs_space.c
+++ b/radeon/radeon_cs_space.c
@@ -165,7 +165,7 @@ static int radeon_cs_do_space_check(struct radeon_cs_int *cs, struct radeon_cs_s
165 return RADEON_CS_SPACE_OK; 165 return RADEON_CS_SPACE_OK;
166} 166}
167 167
168drm_public void 168void
169radeon_cs_space_add_persistent_bo(struct radeon_cs *cs, struct radeon_bo *bo, 169radeon_cs_space_add_persistent_bo(struct radeon_cs *cs, struct radeon_bo *bo,
170 uint32_t read_domains, uint32_t write_domain) 170 uint32_t read_domains, uint32_t write_domain)
171{ 171{
@@ -209,7 +209,7 @@ again:
209 return 0; 209 return 0;
210} 210}
211 211
212drm_public int 212int
213radeon_cs_space_check_with_bo(struct radeon_cs *cs, struct radeon_bo *bo, 213radeon_cs_space_check_with_bo(struct radeon_cs *cs, struct radeon_bo *bo,
214 uint32_t read_domains, uint32_t write_domain) 214 uint32_t read_domains, uint32_t write_domain)
215{ 215{
@@ -230,13 +230,13 @@ radeon_cs_space_check_with_bo(struct radeon_cs *cs, struct radeon_bo *bo,
230 return ret; 230 return ret;
231} 231}
232 232
233drm_public int radeon_cs_space_check(struct radeon_cs *cs) 233int radeon_cs_space_check(struct radeon_cs *cs)
234{ 234{
235 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 235 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
236 return radeon_cs_check_space_internal(csi, NULL); 236 return radeon_cs_check_space_internal(csi, NULL);
237} 237}
238 238
239drm_public void radeon_cs_space_reset_bos(struct radeon_cs *cs) 239void radeon_cs_space_reset_bos(struct radeon_cs *cs)
240{ 240{
241 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs; 241 struct radeon_cs_int *csi = (struct radeon_cs_int *)cs;
242 int i; 242 int i;
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index fd75b16a..fad4bda3 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -2400,7 +2400,7 @@ static int cik_surface_best(struct radeon_surface_manager *surf_man,
2400/* =========================================================================== 2400/* ===========================================================================
2401 * public API 2401 * public API
2402 */ 2402 */
2403drm_public struct radeon_surface_manager * 2403struct radeon_surface_manager *
2404radeon_surface_manager_new(int fd) 2404radeon_surface_manager_new(int fd)
2405{ 2405{
2406 struct radeon_surface_manager *surf_man; 2406 struct radeon_surface_manager *surf_man;
@@ -2449,7 +2449,7 @@ out_err:
2449 return NULL; 2449 return NULL;
2450} 2450}
2451 2451
2452drm_public void 2452void
2453radeon_surface_manager_free(struct radeon_surface_manager *surf_man) 2453radeon_surface_manager_free(struct radeon_surface_manager *surf_man)
2454{ 2454{
2455 free(surf_man); 2455 free(surf_man);
@@ -2522,7 +2522,7 @@ static int radeon_surface_sanity(struct radeon_surface_manager *surf_man,
2522 return 0; 2522 return 0;
2523} 2523}
2524 2524
2525drm_public int 2525int
2526radeon_surface_init(struct radeon_surface_manager *surf_man, 2526radeon_surface_init(struct radeon_surface_manager *surf_man,
2527 struct radeon_surface *surf) 2527 struct radeon_surface *surf)
2528{ 2528{
@@ -2539,7 +2539,7 @@ radeon_surface_init(struct radeon_surface_manager *surf_man,
2539 return surf_man->surface_init(surf_man, surf); 2539 return surf_man->surface_init(surf_man, surf);
2540} 2540}
2541 2541
2542drm_public int 2542int
2543radeon_surface_best(struct radeon_surface_manager *surf_man, 2543radeon_surface_best(struct radeon_surface_manager *surf_man,
2544 struct radeon_surface *surf) 2544 struct radeon_surface *surf)
2545{ 2545{