summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_drawable.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2007-12-16 01:02:32 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2007-12-16 01:02:32 +0000
commit7953511a19ed4b49680282685824609caa029b7a (patch)
tree070aefd5763bc0b5edf037def017b494103160a3 /sys/dev/pci/drm/drm_drawable.c
parent6fe7d8adc29f6dff9bed413ccd3a0294f421d5fd (diff)
destatic the static functions, they only make debugging harder.
While i'm here: remove a couple of debug printfs that shouldn't have gone in anyway. trowel on some KNF (I really need to get around to sending some of this upstream). remove some netbsd specific code that netbsd doesn't have anymore. ok tedu.
Diffstat (limited to 'sys/dev/pci/drm/drm_drawable.c')
-rw-r--r--sys/dev/pci/drm/drm_drawable.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/drm_drawable.c b/sys/dev/pci/drm/drm_drawable.c
index 264d4148e3d..021f348136e 100644
--- a/sys/dev/pci/drm/drm_drawable.c
+++ b/sys/dev/pci/drm/drm_drawable.c
@@ -35,6 +35,9 @@
#include "drmP.h"
+int drm_drawable_compare(struct bsd_drm_drawable_info *,
+ struct bsd_drm_drawable_info *);
+
#ifdef __OpenBSD__
RB_PROTOTYPE(drawable_tree, bsd_drm_drawable_info, tree,
drm_drawable_compare);
@@ -46,7 +49,7 @@ struct bsd_drm_drawable_info {
RB_ENTRY(bsd_drm_drawable_info) tree;
};
-static int
+int
drm_drawable_compare(struct bsd_drm_drawable_info *a,
struct bsd_drm_drawable_info *b)
{
@@ -79,7 +82,8 @@ drm_get_drawable_info(drm_device_t *dev, int handle)
return NULL;
}
-int drm_adddraw(drm_device_t *dev, void *data, struct drm_file *file_priv)
+int
+drm_adddraw(drm_device_t *dev, void *data, struct drm_file *file_priv)
{
drm_draw_t *draw = data;
struct bsd_drm_drawable_info *info;
@@ -104,7 +108,8 @@ int drm_adddraw(drm_device_t *dev, void *data, struct drm_file *file_priv)
return 0;
}
-int drm_rmdraw(drm_device_t *dev, void *data, struct drm_file *file_priv)
+int
+drm_rmdraw(drm_device_t *dev, void *data, struct drm_file *file_priv)
{
drm_draw_t *draw = (drm_draw_t *)data;
struct drm_drawable_info *info;
@@ -127,7 +132,8 @@ int drm_rmdraw(drm_device_t *dev, void *data, struct drm_file *file_priv)
}
}
-int drm_update_draw(drm_device_t *dev, void *data, struct drm_file *file_priv)
+int
+drm_update_draw(drm_device_t *dev, void *data, struct drm_file *file_priv)
{
struct drm_drawable_info *info;
struct drm_update_draw *update = (struct drm_update_draw *)data;