public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Christoph Hellwig <hch@lst.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] move some more intilization out of drivers/char/mem.c
Date: Sat, 20 Sep 2003 23:48:53 -0700	[thread overview]
Message-ID: <20030920234853.7e09f663.akpm@osdl.org> (raw)
In-Reply-To: <20030921063030.GA1508@lst.de>

Christoph Hellwig <hch@lst.de> wrote:
>
> > Please compile-test things...
> 
>  Well, I compiled this here.  I see, looks like I lost half of the patch
>  when sending it to you.  Sorryh for that, here's the full patch:

It still generates warnings.  I suggest you build kernels with a script
which saves up stderr and spits it all out at the end.  That way, these
things are noticed.



 drivers/char/random.c |    3 ++-
 drivers/char/tty_io.c |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff -puN drivers/char/random.c~char-init-cleanup-fix drivers/char/random.c
--- 25/drivers/char/random.c~char-init-cleanup-fix	2003-09-20 23:45:28.000000000 -0700
+++ 25-akpm/drivers/char/random.c	2003-09-20 23:45:46.000000000 -0700
@@ -1493,7 +1493,7 @@ static void init_std_data(struct entropy
 	}
 }
 
-static void __init rand_initialize(void)
+static int __init rand_initialize(void)
 {
 	int i;
 
@@ -1515,6 +1515,7 @@ static void __init rand_initialize(void)
 	memset(&mouse_timer_state, 0, sizeof(struct timer_rand_state));
 	memset(&extract_timer_state, 0, sizeof(struct timer_rand_state));
 	extract_timer_state.dont_count_entropy = 1;
+	return 0;
 }
 module_init(rand_initialize);
 
diff -puN drivers/char/tty_io.c~char-init-cleanup-fix drivers/char/tty_io.c
--- 25/drivers/char/tty_io.c~char-init-cleanup-fix	2003-09-20 23:45:35.000000000 -0700
+++ 25-akpm/drivers/char/tty_io.c	2003-09-20 23:46:06.000000000 -0700
@@ -2423,7 +2423,7 @@ static struct cdev vc0_cdev;
  * Ok, now we can initialize the rest of the tty devices and can count
  * on memory allocations, interrupts etc..
  */
-static void __init tty_init(void)
+static int __init tty_init(void)
 {
 	strcpy(tty_cdev.kobj.name, "dev.tty");
 	cdev_init(&tty_cdev, &tty_fops);
@@ -2512,5 +2512,6 @@ static void __init tty_init(void)
 #ifdef CONFIG_A2232
 	a2232board_init();
 #endif
+	return 0;
 }
 module_init(tty_init);

_


  reply	other threads:[~2003-09-21  6:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-20 13:29 [PATCH] move some more intilization out of drivers/char/mem.c Christoph Hellwig
2003-09-20 23:06 ` Andrew Morton
2003-09-21  6:30   ` Christoph Hellwig
2003-09-21  6:48     ` Andrew Morton [this message]
2003-09-21  7:05       ` Christoph Hellwig
2003-09-21 17:03         ` Randy.Dunlap
2003-09-21  7:54       ` Muli Ben-Yehuda
2003-09-22 11:13         ` Adrian Bunk

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=20030920234853.7e09f663.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=hch@lst.de \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox