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_device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'freedreno/freedreno_device.c') diff --git a/freedreno/freedreno_device.c b/freedreno/freedreno_device.c index 09b2302c..3bc4cb21 100644 --- a/freedreno/freedreno_device.c +++ b/freedreno/freedreno_device.c @@ -80,7 +80,7 @@ init_cache_buckets(struct fd_device *dev) } } -drm_public struct fd_device * fd_device_new(int fd) +struct fd_device * fd_device_new(int fd) { struct fd_device *dev; drmVersionPtr version; @@ -121,7 +121,7 @@ drm_public struct fd_device * fd_device_new(int fd) /* like fd_device_new() but creates it's own private dup() of the fd * which is close()d when the device is finalized. */ -drm_public struct fd_device * fd_device_new_dup(int fd) +struct fd_device * fd_device_new_dup(int fd) { struct fd_device *dev = fd_device_new(dup(fd)); if (dev) @@ -129,7 +129,7 @@ drm_public struct fd_device * fd_device_new_dup(int fd) return dev; } -drm_public struct fd_device * fd_device_ref(struct fd_device *dev) +struct fd_device * fd_device_ref(struct fd_device *dev) { atomic_inc(&dev->refcnt); return dev; @@ -152,7 +152,7 @@ drm_private void fd_device_del_locked(struct fd_device *dev) fd_device_del_impl(dev); } -drm_public void fd_device_del(struct fd_device *dev) +void fd_device_del(struct fd_device *dev) { if (!atomic_dec_and_test(&dev->refcnt)) return; -- cgit v1.2.3