[-mm patch] drivers/uio/: make 3 functions static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

---

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux