aboutsummaryrefslogtreecommitdiffstats
path: root/tegra
diff options
context:
space:
mode:
authorEmil Velikov2015-03-31 16:32:11 -0500
committerEmil Velikov2015-04-28 05:19:15 -0500
commit0f8da82500ec542e269092c0718479e25eaff5f6 (patch)
tree4bfdf0fe56674bd42926f6f4607331d1468d08dd /tegra
parent104c895f650cac7741c12e10ee78bb2fca2cbd49 (diff)
downloadexternal-libgbm-0f8da82500ec542e269092c0718479e25eaff5f6.tar.gz
external-libgbm-0f8da82500ec542e269092c0718479e25eaff5f6.tar.xz
external-libgbm-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 'tegra')
-rw-r--r--tegra/tegra.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/tegra/tegra.c b/tegra/tegra.c
index f8d40786..f7dc89ad 100644
--- a/tegra/tegra.c
+++ b/tegra/tegra.c
@@ -74,7 +74,6 @@ static int drm_tegra_wrap(struct drm_tegra **drmp, int fd, bool close)
74 return 0; 74 return 0;
75} 75}
76 76
77drm_public
78int drm_tegra_new(struct drm_tegra **drmp, int fd) 77int drm_tegra_new(struct drm_tegra **drmp, int fd)
79{ 78{
80 bool supported = false; 79 bool supported = false;
@@ -95,7 +94,6 @@ int drm_tegra_new(struct drm_tegra **drmp, int fd)
95 return drm_tegra_wrap(drmp, fd, false); 94 return drm_tegra_wrap(drmp, fd, false);
96} 95}
97 96
98drm_public
99void drm_tegra_close(struct drm_tegra *drm) 97void drm_tegra_close(struct drm_tegra *drm)
100{ 98{
101 if (!drm) 99 if (!drm)
@@ -107,7 +105,6 @@ void drm_tegra_close(struct drm_tegra *drm)
107 free(drm); 105 free(drm);
108} 106}
109 107
110drm_public
111int drm_tegra_bo_new(struct drm_tegra_bo **bop, struct drm_tegra *drm, 108int drm_tegra_bo_new(struct drm_tegra_bo **bop, struct drm_tegra *drm,
112 uint32_t flags, uint32_t size) 109 uint32_t flags, uint32_t size)
113{ 110{
@@ -146,7 +143,6 @@ int drm_tegra_bo_new(struct drm_tegra_bo **bop, struct drm_tegra *drm,
146 return 0; 143 return 0;
147} 144}
148 145
149drm_public
150int drm_tegra_bo_wrap(struct drm_tegra_bo **bop, struct drm_tegra *drm, 146int drm_tegra_bo_wrap(struct drm_tegra_bo **bop, struct drm_tegra *drm,
151 uint32_t handle, uint32_t flags, uint32_t size) 147 uint32_t handle, uint32_t flags, uint32_t size)
152{ 148{
@@ -170,7 +166,6 @@ int drm_tegra_bo_wrap(struct drm_tegra_bo **bop, struct drm_tegra *drm,
170 return 0; 166 return 0;
171} 167}
172 168
173drm_public
174struct drm_tegra_bo *drm_tegra_bo_ref(struct drm_tegra_bo *bo) 169struct drm_tegra_bo *drm_tegra_bo_ref(struct drm_tegra_bo *bo)
175{ 170{
176 if (bo) 171 if (bo)
@@ -179,14 +174,12 @@ struct drm_tegra_bo *drm_tegra_bo_ref(struct drm_tegra_bo *bo)
179 return bo; 174 return bo;
180} 175}
181 176
182drm_public
183void drm_tegra_bo_unref(struct drm_tegra_bo *bo) 177void drm_tegra_bo_unref(struct drm_tegra_bo *bo)
184{ 178{
185 if (bo && atomic_dec_and_test(&bo->ref)) 179 if (bo && atomic_dec_and_test(&bo->ref))
186 drm_tegra_bo_free(bo); 180 drm_tegra_bo_free(bo);
187} 181}
188 182
189drm_public
190int drm_tegra_bo_get_handle(struct drm_tegra_bo *bo, uint32_t *handle) 183int drm_tegra_bo_get_handle(struct drm_tegra_bo *bo, uint32_t *handle)
191{ 184{
192 if (!bo || !handle) 185 if (!bo || !handle)
@@ -197,7 +190,6 @@ int drm_tegra_bo_get_handle(struct drm_tegra_bo *bo, uint32_t *handle)
197 return 0; 190 return 0;
198} 191}
199 192
200drm_public
201int drm_tegra_bo_map(struct drm_tegra_bo *bo, void **ptr) 193int drm_tegra_bo_map(struct drm_tegra_bo *bo, void **ptr)
202{ 194{
203 struct drm_tegra *drm = bo->drm; 195 struct drm_tegra *drm = bo->drm;
@@ -230,7 +222,6 @@ int drm_tegra_bo_map(struct drm_tegra_bo *bo, void **ptr)
230 return 0; 222 return 0;
231} 223}
232 224
233drm_public
234int drm_tegra_bo_unmap(struct drm_tegra_bo *bo) 225int drm_tegra_bo_unmap(struct drm_tegra_bo *bo)
235{ 226{
236 if (!bo) 227 if (!bo)
@@ -247,7 +238,6 @@ int drm_tegra_bo_unmap(struct drm_tegra_bo *bo)
247 return 0; 238 return 0;
248} 239}
249 240
250drm_public
251int drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags) 241int drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags)
252{ 242{
253 struct drm_tegra_gem_get_flags args; 243 struct drm_tegra_gem_get_flags args;
@@ -271,7 +261,6 @@ int drm_tegra_bo_get_flags(struct drm_tegra_bo *bo, uint32_t *flags)
271 return 0; 261 return 0;
272} 262}
273 263
274drm_public
275int drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags) 264int drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags)
276{ 265{
277 struct drm_tegra_gem_get_flags args; 266 struct drm_tegra_gem_get_flags args;
@@ -293,7 +282,6 @@ int drm_tegra_bo_set_flags(struct drm_tegra_bo *bo, uint32_t flags)
293 return 0; 282 return 0;
294} 283}
295 284
296drm_public
297int drm_tegra_bo_get_tiling(struct drm_tegra_bo *bo, 285int drm_tegra_bo_get_tiling(struct drm_tegra_bo *bo,
298 struct drm_tegra_bo_tiling *tiling) 286 struct drm_tegra_bo_tiling *tiling)
299{ 287{
@@ -320,7 +308,6 @@ int drm_tegra_bo_get_tiling(struct drm_tegra_bo *bo,
320 return 0; 308 return 0;
321} 309}
322 310
323drm_public
324int drm_tegra_bo_set_tiling(struct drm_tegra_bo *bo, 311int drm_tegra_bo_set_tiling(struct drm_tegra_bo *bo,
325 const struct drm_tegra_bo_tiling *tiling) 312 const struct drm_tegra_bo_tiling *tiling)
326{ 313{