[2.6 patch] make drm_sg_alloc() static

From: Adrian Bunk
Date: Wed Oct 24 2007 - 12:23:46 EST


drm_sg_alloc() can now become static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---

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

20df9d65e0cd1dc699129787b2c4b02a010b1bcc
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index 9dd0760..98395c1 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -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);

diff --git a/drivers/char/drm/drm_scatter.c b/drivers/char/drm/drm_scatter.c
index eb7fa43..4444489 100644
--- a/drivers/char/drm/drm_scatter.c
+++ b/drivers/char/drm/drm_scatter.c
@@ -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)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/