]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/char/drm/drm_lock.c
drm: misc cleanup
[linux-beck.git] / drivers / char / drm / drm_lock.c
index d0d6fc6616253e177f304101976343a2f7af6e9c..4702d863bcc62b11759739818e142c26480b49d2 100644 (file)
 
 #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.
  *
@@ -225,8 +230,9 @@ 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,
-                      __volatile__ unsigned int *lock, unsigned int context)
+static int drm_lock_transfer(drm_device_t *dev,
+                            __volatile__ unsigned int *lock,
+                            unsigned int context)
 {
        unsigned int old, new, prev;
 
@@ -282,7 +288,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;