Skip to contentSkip to conversation

make drm_sg_alloc() static

PATCH New Adrian Bunk 1 participant 1 message Oct 24, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make drm_sg_alloc() static

drm_sg_alloc() can now become static.

---

 drivers/char/drm/drmP.h        |    1 -
 drivers/char/drm/drm_scatter.c |    5 ++---
 2 files changed, 2 insertions(+), 4 deletions(-)

20df9d65e0cd1dc699129787b2c4b02a010b1bcc

drivers/char/drm/drmP.h +0 -1
index 9dd0760..98395c1 100644
@@ -1047,7 +1047,6 @@ extern int drm_proc_cleanup(int minor,
 extern void drm_sg_cleanup(struct drm_sg_mem * entry);
 extern int drm_sg_alloc_ioctl(struct drm_device *dev, void *data,
 			struct drm_file *file_priv);
-extern int drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather * request);
 extern int drm_sg_free(struct drm_device *dev, void *data,
 		       struct drm_file *file_priv);
 
drivers/char/drm/drm_scatter.c +2 -3
index eb7fa43..4444489 100644
@@ -62,7 +62,8 @@ void drm_sg_cleanup(struct drm_sg_mem * entry)
 # define ScatterHandle(x) (unsigned int)(x)
 #endif
 
-int drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather * request)
+static int drm_sg_alloc(struct drm_device *dev,
+			struct drm_scatter_gather * request)
 {
 	struct drm_sg_mem *entry;
 	unsigned long pages, i, j;
@@ -183,8 +184,6 @@ int drm_sg_alloc(struct drm_device *dev, struct drm_scatter_gather * request)
 	drm_sg_cleanup(entry);
 	return -ENOMEM;
 }
-EXPORT_SYMBOL(drm_sg_alloc);
-
 
 int drm_sg_alloc_ioctl(struct drm_device *dev, void *data,
 		       struct drm_file *file_priv)