lkml.org 
[lkml]   [2006]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[-mm patch] drivers/uio/: make 3 functions static
On Mon, Dec 11, 2006 at 12:58:07AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.19-rc6-mm2:
>...
> +gregkh-driver-uio.patch
> +gregkh-driver-uio-dummy.patch
>...
> driver tree updates
>...

This patch makes three needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---
drivers/uio/uio.c | 2 +-
drivers/uio/uio_dummy.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- linux-2.6.19-mm1/drivers/uio/uio.c.old 2006-12-11 18:26:58.000000000 +0100
+++ linux-2.6.19-mm1/drivers/uio/uio.c 2006-12-11 18:27:14.000000000 +0100
@@ -602,7 +602,7 @@
return 0;
}

-void __exit uio_exit(void)
+static void __exit uio_exit(void)
{
}

--- linux-2.6.19-mm1/drivers/uio/uio_dummy.c.old 2006-12-11 18:27:43.000000000 +0100
+++ linux-2.6.19-mm1/drivers/uio/uio_dummy.c 2006-12-11 18:28:15.000000000 +0100
@@ -137,7 +137,7 @@

}

-struct platform_device *uio_dummy_device;
+static struct platform_device *uio_dummy_device;

static struct device_driver uio_dummy_driver = {
.name = "uio_dummy",
@@ -160,7 +160,7 @@
return driver_register(&uio_dummy_driver);
}

-void __exit uio_dummy_exit(void)
+static void __exit uio_dummy_exit(void)
{
platform_device_unregister(uio_dummy_device);
driver_unregister(&uio_dummy_driver);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-12-11 20:09    [from the cache]
©2003-2011 Jasper Spaans