summaryrefslogtreecommitdiff
path: root/linux-core/drm_lock.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-06-04 06:18:11 +0000
committerDave Airlie <airlied@linux.ie>2005-06-04 06:18:11 +0000
commit805a07714f05833a1ed4e4a01f8086fafd46e849 (patch)
tree26bd7bdef728bbb46f601d8e3d9e97798f39af8e /linux-core/drm_lock.c
parent83cb1504498ad2ca327bc8341bc21ed6cdb54756 (diff)
misc cleanup patch from Adrian Bunk
Diffstat (limited to 'linux-core/drm_lock.c')
-rw-r--r--linux-core/drm_lock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/linux-core/drm_lock.c b/linux-core/drm_lock.c
index 048f084f..5557f30f 100644
--- a/linux-core/drm_lock.c
+++ b/linux-core/drm_lock.c
@@ -35,6 +35,10 @@
#include "drmP.h"
+static int drm_lock_transfer(drm_device_t * dev,
+ __volatile__ unsigned int *lock, unsigned int context);
+static int drm_notifier(void *priv);
+
/**
* Lock ioctl.
*
@@ -224,7 +228,7 @@ int drm_lock_take(__volatile__ unsigned int *lock, unsigned int context)
* Resets the lock file pointer.
* Marks the lock as held by the given context, via the \p cmpxchg instruction.
*/
-int drm_lock_transfer(drm_device_t * dev,
+static int drm_lock_transfer(drm_device_t * dev,
__volatile__ unsigned int *lock, unsigned int context)
{
unsigned int old, new, prev;
@@ -280,7 +284,7 @@ int drm_lock_free(drm_device_t * dev,
* \return one if the signal should be delivered normally, or zero if the
* signal should be blocked.
*/
-int drm_notifier(void *priv)
+static int drm_notifier(void *priv)
{
drm_sigdata_t *s = (drm_sigdata_t *) priv;
unsigned int old, new, prev;