public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/char/drm/: small cleanups
@ 2005-08-24 15:43 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-08-24 15:43 UTC (permalink / raw)
  To: airlied; +Cc: dri-devel, linux-kernel

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>

---

 drivers/char/drm/drm_bufs.c    |    2 +-
 drivers/char/drm/drm_context.c |    2 +-
 drivers/char/drm/drm_sysfs.c   |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_bufs.c.old	2005-08-24 16:55:50.000000000 +0200
+++ linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_bufs.c	2005-08-24 16:56:06.000000000 +0200
@@ -1041,7 +1041,7 @@
 	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;
--- linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_context.c.old	2005-08-24 16:56:29.000000000 +0200
+++ linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_context.c	2005-08-24 16:56:42.000000000 +0200
@@ -308,7 +308,7 @@
  *
  * 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" );
--- linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_sysfs.c.old	2005-08-24 16:57:02.000000000 +0200
+++ linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_sysfs.c	2005-08-24 16:57:20.000000000 +0200
@@ -17,6 +17,7 @@
 #include <linux/err.h>
 
 #include "drm_core.h"
+#include "drmP.h"
 
 struct drm_sysfs_class {
 	struct class_device_attribute attr;


^ permalink raw reply	[flat|nested] 2+ messages in thread
* [2.6 patch] drivers/char/drm/: small cleanups
@ 2005-09-02  1:24 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-09-02  1:24 UTC (permalink / raw)
  To: Andrew Morton; +Cc: airlied, dri-devel, linux-kernel

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>

---

This patch was already sent on:
- 24 Aug 2005

 drivers/char/drm/drm_bufs.c    |    2 +-
 drivers/char/drm/drm_context.c |    2 +-
 drivers/char/drm/drm_sysfs.c   |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

--- linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_bufs.c.old	2005-08-24 16:55:50.000000000 +0200
+++ linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_bufs.c	2005-08-24 16:56:06.000000000 +0200
@@ -1041,7 +1041,7 @@
 	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;
--- linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_context.c.old	2005-08-24 16:56:29.000000000 +0200
+++ linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_context.c	2005-08-24 16:56:42.000000000 +0200
@@ -308,7 +308,7 @@
  *
  * 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" );
--- linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_sysfs.c.old	2005-08-24 16:57:02.000000000 +0200
+++ linux-2.6.13-rc6-mm2-full/drivers/char/drm/drm_sysfs.c	2005-08-24 16:57:20.000000000 +0200
@@ -17,6 +17,7 @@
 #include <linux/err.h>
 
 #include "drm_core.h"
+#include "drmP.h"
 
 struct drm_sysfs_class {
 	struct class_device_attribute attr;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-02  1:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24 15:43 [2.6 patch] drivers/char/drm/: small cleanups Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-09-02  1:24 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox