[2.6 patch] drivers/input/: make some functions static
- From: Adrian Bunk <bunk@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 22:32:34 +0100
This patch makes some needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>
---
drivers/input/joystick/twidjoy.c | 4 ++--
drivers/input/touchscreen/mk712.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
--- linux-2.6.14-rc5-mm1-full/drivers/input/joystick/twidjoy.c.old 2005-11-04 11:37:38.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/input/joystick/twidjoy.c 2005-11-04 11:38:01.000000000 +0100
@@ -265,13 +265,13 @@
* The functions for inserting/removing us as a module.
*/
-int __init twidjoy_init(void)
+static int __init twidjoy_init(void)
{
serio_register_driver(&twidjoy_drv);
return 0;
}
-void __exit twidjoy_exit(void)
+static void __exit twidjoy_exit(void)
{
serio_unregister_driver(&twidjoy_drv);
}
--- linux-2.6.14-rc5-mm1-full/drivers/input/touchscreen/mk712.c.old 2005-11-04 11:38:20.000000000 +0100
+++ linux-2.6.14-rc5-mm1-full/drivers/input/touchscreen/mk712.c 2005-11-04 11:38:29.000000000 +0100
@@ -154,7 +154,7 @@
spin_unlock_irqrestore(&mk712_lock, flags);
}
-int __init mk712_init(void)
+static int __init mk712_init(void)
{
int err;
-
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/
- Follow-Ups:
- Re: [2.6 patch] drivers/input/: make some functions static
- From: Dmitry Torokhov
- Re: [2.6 patch] drivers/input/: make some functions static
- Prev by Date: Re: qla2xxx related oops in 2.6.16-rc1
- Next by Date: [2.6 patch] drivers/scsi/libata-scsi.c: make some functions static
- Previous by thread: [GIT PATCH] SCSI bug fixes for 2.6.16-rc1
- Next by thread: Re: [2.6 patch] drivers/input/: make some functions static
- Index(es):
Relevant Pages
- [2.6 patch] fs/lockd/clntproc.c: make 2 functions static
... This patch makes two needlessly global functions static. ... nlmclnt_async_call(struct
nlm_rqst *req, u32 proc, rpc_action callback) ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - Re: [2.6 patch] DRM: misc cleanup
... > - make needlessly global functions static ... I'll nack this patch
for now Adrian, but I'm going to bring all these ... no-one uses pageflip in those drivers
but still should fix it..), ... send the line "unsubscribe linux-kernel" in ...
(Linux-Kernel) - Re: [-mm patch] mm/memcontrol.c: clenups
... Adrian Bunk wrote: ... This patch makes the following needlessly global
functions static: ... (Linux-Kernel) - Re: [-mm patch] drivers/net/e1000/: possible cleanups
... - make needlessly global functions static ... unused code and not immediately
removing the currently unused code. ... If you as a maintainer of this driver say you want a patch
to remove ... There had been need of rain for many days. ... (Linux-Kernel) - [RFC: 2.6 patch] drivers/mtd/maps/nettel.c: possible cleanups
... This patch contains the following possible cleanups: ... - make 2 needlessly
global functions static ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... (Linux-Kernel)