diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-08-23 16:53:34 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-08-29 19:39:00 -0400 |
commit | 4ac5ec40ec70022e4dea8cc6254d2dadd1e43d57 (patch) | |
tree | fbe2a7b487a0b0d13275c45c2c7570945370a26a /drivers | |
parent | 793a97e4cc38f834e0488ccc1ecbfe52ff6f5b84 (diff) |
drm: don't export dri1 locking functions
Only used by ioctl, not by any in-tree drivers.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_lock.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_lock.c b/drivers/gpu/drm/drm_lock.c index d9146f240d33..1e28b9072068 100644 --- a/drivers/gpu/drm/drm_lock.c +++ b/drivers/gpu/drm/drm_lock.c | |||
@@ -37,6 +37,8 @@ | |||
37 | 37 | ||
38 | static int drm_notifier(void *priv); | 38 | static int drm_notifier(void *priv); |
39 | 39 | ||
40 | static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context); | ||
41 | |||
40 | /** | 42 | /** |
41 | * Lock ioctl. | 43 | * Lock ioctl. |
42 | * | 44 | * |
@@ -172,6 +174,7 @@ int drm_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv) | |||
172 | * | 174 | * |
173 | * Attempt to mark the lock as held by the given context, via the \p cmpxchg instruction. | 175 | * Attempt to mark the lock as held by the given context, via the \p cmpxchg instruction. |
174 | */ | 176 | */ |
177 | static | ||
175 | int drm_lock_take(struct drm_lock_data *lock_data, | 178 | int drm_lock_take(struct drm_lock_data *lock_data, |
176 | unsigned int context) | 179 | unsigned int context) |
177 | { | 180 | { |
@@ -208,7 +211,6 @@ int drm_lock_take(struct drm_lock_data *lock_data, | |||
208 | } | 211 | } |
209 | return 0; | 212 | return 0; |
210 | } | 213 | } |
211 | EXPORT_SYMBOL(drm_lock_take); | ||
212 | 214 | ||
213 | /** | 215 | /** |
214 | * This takes a lock forcibly and hands it to context. Should ONLY be used | 216 | * This takes a lock forcibly and hands it to context. Should ONLY be used |
@@ -276,7 +278,6 @@ int drm_lock_free(struct drm_lock_data *lock_data, unsigned int context) | |||
276 | wake_up_interruptible(&lock_data->lock_queue); | 278 | wake_up_interruptible(&lock_data->lock_queue); |
277 | return 0; | 279 | return 0; |
278 | } | 280 | } |
279 | EXPORT_SYMBOL(drm_lock_free); | ||
280 | 281 | ||
281 | /** | 282 | /** |
282 | * If we get here, it means that the process has called DRM_IOCTL_LOCK | 283 | * If we get here, it means that the process has called DRM_IOCTL_LOCK |
@@ -339,7 +340,6 @@ void drm_idlelock_take(struct drm_lock_data *lock_data) | |||
339 | } | 340 | } |
340 | spin_unlock_bh(&lock_data->spinlock); | 341 | spin_unlock_bh(&lock_data->spinlock); |
341 | } | 342 | } |
342 | EXPORT_SYMBOL(drm_idlelock_take); | ||
343 | 343 | ||
344 | void drm_idlelock_release(struct drm_lock_data *lock_data) | 344 | void drm_idlelock_release(struct drm_lock_data *lock_data) |
345 | { | 345 | { |
@@ -359,8 +359,6 @@ void drm_idlelock_release(struct drm_lock_data *lock_data) | |||
359 | } | 359 | } |
360 | spin_unlock_bh(&lock_data->spinlock); | 360 | spin_unlock_bh(&lock_data->spinlock); |
361 | } | 361 | } |
362 | EXPORT_SYMBOL(drm_idlelock_release); | ||
363 | |||
364 | 362 | ||
365 | int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv) | 363 | int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv) |
366 | { | 364 | { |
@@ -369,5 +367,3 @@ int drm_i_have_hw_lock(struct drm_device *dev, struct drm_file *file_priv) | |||
369 | _DRM_LOCK_IS_HELD(master->lock.hw_lock->lock) && | 367 | _DRM_LOCK_IS_HELD(master->lock.hw_lock->lock) && |
370 | master->lock.file_priv == file_priv); | 368 | master->lock.file_priv == file_priv); |
371 | } | 369 | } |
372 | |||
373 | EXPORT_SYMBOL(drm_i_have_hw_lock); | ||