drm: small cleanups
authorDave Airlie <airlied@starflyer.(none)>
Mon, 5 Sep 2005 11:33:44 +0000 (21:33 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 5 Sep 2005 11:33:44 +0000 (21:33 +1000)
This patch contains the following small cleanups:
- make two needlessly global functions static
- drm_sysfs.c: every file should #include the header with the prototypes
              of the global functions it is offering

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_bufs.c
drivers/char/drm/drm_context.c
drivers/char/drm/drm_sysfs.c

index 8eff0736a94d914b506918296b27c615d5c72dda..f28e70ae66065d4a498760af053d1ea5fa0b6a99 100644 (file)
@@ -1041,7 +1041,7 @@ static int drm_addbufs_sg(drm_device_t *dev, drm_buf_desc_t *request)
        return 0;
 }
 
-int drm_addbufs_fb(drm_device_t *dev, drm_buf_desc_t *request)
+static int drm_addbufs_fb(drm_device_t *dev, drm_buf_desc_t *request)
 {
        drm_device_dma_t *dma = dev->dma;
        drm_buf_entry_t *entry;
index f515567e5b6f3b9545b8023f365c471b55b9db2d..502892794c1676b6fb05fc7dd59381bf06fb8d9a 100644 (file)
@@ -308,7 +308,7 @@ found:
  *
  * Attempt to set drm_device::context_flag.
  */
-int drm_context_switch( drm_device_t *dev, int old, int new )
+static int drm_context_switch( drm_device_t *dev, int old, int new )
 {
         if ( test_and_set_bit( 0, &dev->context_flag ) ) {
                 DRM_ERROR( "Reentering -- FIXME\n" );
index 2fc10c4bbcdfd4c9be3e5a11f822259d5f2aa746..475cc5e555e1c43626ed18be91df2e90babcf5a4 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/err.h>
 
 #include "drm_core.h"
+#include "drmP.h"
 
 struct drm_sysfs_class {
        struct class_device_attribute attr;
This page took 0.026779 seconds and 5 git commands to generate.