The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: viro@parcelfarce.linux.theplanet.co.uk
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Ulrich Drepper <drepper@redhat.com>,
	linux-kernel@vger.kernel.org, AlexanderOD Viro <aviro@redhat.com>
Subject: [PATCH] Re: oops with bk kernel as of 2003-05-25T13:00:00-07
Date: Sun, 25 May 2003 22:51:50 +0100	[thread overview]
Message-ID: <20030525215150.GI6270@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20030525213040.GH6270@parcelfarce.linux.theplanet.co.uk>

On Sun, May 25, 2003 at 10:30:40PM +0100, viro@parcelfarce.linux.theplanet.co.uk wrote:

> Guess which one wins...  What a mess...  How about the following (untested,
> but AFAICS should work)

[snip]

or, to make it compile, the following:

diff -urN linux/fs/char_dev.c linux2/fs/char_dev.c
--- linux/fs/char_dev.c	Sun May 25 08:01:46 2003
+++ linux2/fs/char_dev.c	Sun May 25 17:26:04 2003
@@ -457,11 +457,9 @@
 	return NULL;
 }
 
-static int __init chrdev_init(void)
+void __init chrdev_init(void)
 {
 	subsystem_register(&cdev_subsys);
 	kset_register(&kset_dynamic);
 	cdev_map = kobj_map_init(base_probe, &cdev_subsys);
-	return 0;
 }
-subsys_initcall(chrdev_init);
diff -urN linux/fs/dcache.c linux2/fs/dcache.c
--- linux/fs/dcache.c	Sat May 24 18:49:58 2003
+++ linux2/fs/dcache.c	Sun May 25 17:25:40 2003
@@ -1606,6 +1606,7 @@
 EXPORT_SYMBOL(d_genocide);
 
 extern void bdev_cache_init(void);
+extern void chrdev_init(void);
 
 void __init vfs_caches_init(unsigned long mempages)
 {
@@ -1626,4 +1627,5 @@
 	files_init(mempages); 
 	mnt_init(mempages);
 	bdev_cache_init();
+	chrdev_init();
 }


  reply	other threads:[~2003-05-25 21:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-25 20:27 oops with bk kernel as of 2003-05-25T13:00:00-07 Ulrich Drepper
2003-05-25 21:30 ` viro
2003-05-25 21:51   ` viro [this message]
2003-05-25 22:07     ` netlink init order viro
2003-05-25 22:12       ` Linus Torvalds
2003-05-25 22:20         ` viro
2003-05-26  2:07         ` David S. Miller
2003-05-26  2:22           ` Linus Torvalds
2003-05-26  2:25             ` David S. Miller
2003-05-26  2:50             ` viro
2003-05-26  2:55               ` David S. Miller
2003-05-26  4:37                 ` viro

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=20030525215150.GI6270@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=aviro@redhat.com \
    --cc=drepper@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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