From 0f8da82500ec542e269092c0718479e25eaff5f6 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 31 Mar 2015 22:32:11 +0100 Subject: drm: remove drm_public macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Damien Lespiau Cc: Maarten Lankhorst Cc: Michel Dänzer Cc: Rob Clark Cc: Thierry Reding Signed-off-by: Emil Velikov --- freedreno/freedreno_bo.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'freedreno/freedreno_bo.c') diff --git a/freedreno/freedreno_bo.c b/freedreno/freedreno_bo.c index c56fdbd9..517a2f81 100644 --- a/freedreno/freedreno_bo.c +++ b/freedreno/freedreno_bo.c @@ -167,7 +167,7 @@ static struct fd_bo *find_in_bucket(struct fd_device *dev, } -drm_public struct fd_bo * +struct fd_bo * fd_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags) { struct fd_bo *bo = NULL; @@ -201,7 +201,7 @@ fd_bo_new(struct fd_device *dev, uint32_t size, uint32_t flags) return bo; } -drm_public struct fd_bo * +struct fd_bo * fd_bo_from_handle(struct fd_device *dev, uint32_t handle, uint32_t size) { struct fd_bo *bo = NULL; @@ -220,7 +220,7 @@ out_unlock: return bo; } -drm_public struct fd_bo * +struct fd_bo * fd_bo_from_dmabuf(struct fd_device *dev, int fd) { struct drm_prime_handle req = { @@ -239,7 +239,7 @@ fd_bo_from_dmabuf(struct fd_device *dev, int fd) return fd_bo_from_handle(dev, req.handle, size); } -drm_public struct fd_bo * fd_bo_from_name(struct fd_device *dev, uint32_t name) +struct fd_bo * fd_bo_from_name(struct fd_device *dev, uint32_t name) { struct drm_gem_open req = { .name = name, @@ -272,13 +272,13 @@ out_unlock: return bo; } -drm_public struct fd_bo * fd_bo_ref(struct fd_bo *bo) +struct fd_bo * fd_bo_ref(struct fd_bo *bo) { atomic_inc(&bo->refcnt); return bo; } -drm_public void fd_bo_del(struct fd_bo *bo) +void fd_bo_del(struct fd_bo *bo) { struct fd_device *dev = bo->dev; @@ -342,7 +342,7 @@ static void bo_del(struct fd_bo *bo) bo->funcs->destroy(bo); } -drm_public int fd_bo_get_name(struct fd_bo *bo, uint32_t *name) +int fd_bo_get_name(struct fd_bo *bo, uint32_t *name) { if (!bo->name) { struct drm_gem_flink req = { @@ -365,12 +365,12 @@ drm_public int fd_bo_get_name(struct fd_bo *bo, uint32_t *name) return 0; } -drm_public uint32_t fd_bo_handle(struct fd_bo *bo) +uint32_t fd_bo_handle(struct fd_bo *bo) { return bo->handle; } -drm_public int fd_bo_dmabuf(struct fd_bo *bo) +int fd_bo_dmabuf(struct fd_bo *bo) { if (!bo->fd) { struct drm_prime_handle req = { @@ -389,12 +389,12 @@ drm_public int fd_bo_dmabuf(struct fd_bo *bo) return dup(bo->fd); } -drm_public uint32_t fd_bo_size(struct fd_bo *bo) +uint32_t fd_bo_size(struct fd_bo *bo) { return bo->size; } -drm_public void * fd_bo_map(struct fd_bo *bo) +void * fd_bo_map(struct fd_bo *bo) { if (!bo->map) { uint64_t offset; @@ -416,12 +416,12 @@ drm_public void * fd_bo_map(struct fd_bo *bo) } /* a bit odd to take the pipe as an arg, but it's a, umm, quirk of kgsl.. */ -drm_public int fd_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op) +int fd_bo_cpu_prep(struct fd_bo *bo, struct fd_pipe *pipe, uint32_t op) { return bo->funcs->cpu_prep(bo, pipe, op); } -drm_public void fd_bo_cpu_fini(struct fd_bo *bo) +void fd_bo_cpu_fini(struct fd_bo *bo) { bo->funcs->cpu_fini(bo); } -- cgit v1.2.3