All of lore.kernel.org
 help / color / mirror / Atom feed
From: Domen Puncer <domen@coderock.org>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH] drivers/video/vgastate.c
Date: Thu, 28 Jul 2005 17:18:47 +0000	[thread overview]
Message-ID: <20050728171847.GC2249@homer.coderock.org> (raw)
In-Reply-To: <42E8EA34.3020300@steunenberg.org>

[-- 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

      reply	other threads:[~2005-07-28 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28 14:22 [KJ] [PATCH] drivers/video/vgastate.c Jerome Steunenberg
2005-07-28 17:18 ` Domen Puncer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050728171847.GC2249@homer.coderock.org \
    --to=domen@coderock.org \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.