Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f210973b authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

drm: small cleanups



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: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 89625eb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -308,7 +308,7 @@ int drm_setsareactx(struct inode *inode, struct file *filp,
 *
 * 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" );
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <linux/err.h>

#include "drm_core.h"
#include "drmP.h"

struct drm_sysfs_class {
	struct class_device_attribute attr;