* [KJ] [PATCH] drivers/video/vgastate.c
@ 2005-07-28 14:22 Jerome Steunenberg
2005-07-28 17:18 ` Domen Puncer
0 siblings, 1 reply; 2+ messages in thread
From: Jerome Steunenberg @ 2005-07-28 14:22 UTC (permalink / raw)
To: kernel-janitors
This is my first patch to kernel-janitors. Please tell me if I got it all ok
In drivers/video/vgastate.c, the calls to init_module and cleanup_module have been replaced by calls to module_init and module_exit.
Signed-off-by: Jerome Steunenberg <jerome@steunenberg.org>
--- linux-2.6.13-rc3/drivers/video/vgastate.c.orig 2005-07-25 15:09:51.000000000 +0200
+++ linux-2.6.13-rc3/drivers/video/vgastate.c 2005-07-26 10:15:32.000000000 +0200
@@ -491,8 +491,17 @@ int restore_vga (struct vgastate *state)
}
#ifdef MODULE
-int init_module(void) { return 0; };
-void cleanup_module(void) {};
+static int __init vgastate_init(void)
+{
+ return 0;
+}
+
+static void __exit vgastate_exit(void)
+{
+}
+
+module_init(vgastate_init);
+module_exit(vgastate_exit);
#endif
EXPORT_SYMBOL(save_vga);
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KJ] [PATCH] drivers/video/vgastate.c
2005-07-28 14:22 [KJ] [PATCH] drivers/video/vgastate.c Jerome Steunenberg
@ 2005-07-28 17:18 ` Domen Puncer
0 siblings, 0 replies; 2+ messages in thread
From: Domen Puncer @ 2005-07-28 17:18 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]
On 28/07/05 16:22 +0200, Jerome Steunenberg wrote:
> This is my first patch to kernel-janitors. Please tell me if I got it all ok
> In drivers/video/vgastate.c, the calls to init_module and cleanup_module
> have been replaced by calls to module_init and module_exit.
"Subject" could be improved
>
> Signed-off-by: Jerome Steunenberg <jerome@steunenberg.org>
>
>
>
> --- linux-2.6.13-rc3/drivers/video/vgastate.c.orig 2005-07-25
> 15:09:51.000000000 +0200
Wrapped line. Try playing with your mailer settings.
> +++ linux-2.6.13-rc3/drivers/video/vgastate.c 2005-07-26
> 10:15:32.000000000 +0200
> @@ -491,8 +491,17 @@ int restore_vga (struct vgastate *state)
> }
>
> #ifdef MODULE
> -int init_module(void) { return 0; };
> -void cleanup_module(void) {};
> +static int __init vgastate_init(void)
> +{
> + return 0;
> +}
> +
> +static void __exit vgastate_exit(void)
> +{
> +}
> +
> +module_init(vgastate_init);
> +module_exit(vgastate_exit);
> #endif
How about just removing it? A quick hello world module confirmed it
works without these functions.
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-28 17:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-28 14:22 [KJ] [PATCH] drivers/video/vgastate.c Jerome Steunenberg
2005-07-28 17:18 ` Domen Puncer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.