summaryrefslogtreecommitdiff
path: root/bsd-core
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-07-19 06:46:13 -0700
committerEric Anholt <eric@anholt.net>2007-07-19 06:46:13 -0700
commitf4e1c1d05cfbd43ac429ab6dc78345ffa3599b7a (patch)
treed87008e4844c0c29256f5c23ddd03a57919d336d /bsd-core
parent05204b9c8d021e019456a8dbd83c012e277c7aaf (diff)
downloadlibdrm-f4e1c1d05cfbd43ac429ab6dc78345ffa3599b7a.tar.gz
libdrm-f4e1c1d05cfbd43ac429ab6dc78345ffa3599b7a.tar.bz2
libdrm-f4e1c1d05cfbd43ac429ab6dc78345ffa3599b7a.zip
FreeBSD warnings cleanup.
Diffstat (limited to 'bsd-core')
-rw-r--r--bsd-core/drmP.h2
-rw-r--r--bsd-core/drm_drawable.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index fd8f4a27..ff8ad473 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -998,6 +998,8 @@ int drm_dma(DRM_IOCTL_ARGS);
/* IRQ support (drm_irq.c) */
int drm_control(DRM_IOCTL_ARGS);
int drm_wait_vblank(DRM_IOCTL_ARGS);
+void drm_locked_tasklet(drm_device_t *dev,
+ void (*tasklet)(drm_device_t *dev));
/* AGP/GART support (drm_agpsupport.c) */
int drm_agp_acquire_ioctl(DRM_IOCTL_ARGS);
diff --git a/bsd-core/drm_drawable.c b/bsd-core/drm_drawable.c
index ad25a6df..b81d0a75 100644
--- a/bsd-core/drm_drawable.c
+++ b/bsd-core/drm_drawable.c
@@ -103,6 +103,7 @@ int drm_rmdraw(DRM_IOCTL_ARGS)
free_unr(dev->drw_unrhdr, draw->handle);
drm_free(info, sizeof(struct bsd_drm_drawable_info),
DRM_MEM_DRAWABLE);
+ return 0;
} else {
DRM_SPINUNLOCK(&dev->drw_lock);
return EINVAL;