mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: <axboe@suse.de>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: current BK boot failure, d_alloc()
Date: Mon, 24 Mar 2003 09:08:56 -0800 (PST)	[thread overview]
Message-ID: <33047.4.64.238.61.1048525736.squirrel@www.osdl.org> (raw)
In-Reply-To: <20030324120217.GB2371@suse.de>

> On Mon, Mar 24 2003, Jens Axboe wrote:
>> Hi,
>>
>>
[snip]
>> craps out in memcpy() due to name->name == NULL
>
> smells like a compiler problem, with the following patch:
>
> ===== fs/dcache.c 1.43 vs edited =====
> --- 1.43/fs/dcache.c	Sat Mar 22 05:05:21 2003
> +++ edited/fs/dcache.c	Mon Mar 24 12:58:19 2003
> @@ -784,7 +784,8 @@
>  	struct dentry *res = NULL;
>
>  	if (root_inode) {
> -		res = d_alloc(NULL, &(const struct qstr) { "/", 1, 0 });
> +		struct qstr name = { .name = "/", .len = 1, .hash = 0 };
> +		res = d_alloc(NULL, &name);
>  		if (res) {
>  			res->d_sb = root_inode->i_sb;
>  			res->d_parent = res;
>
> --

what compiler, please?

~Randy




  reply	other threads:[~2003-03-24 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 11:50 Jens Axboe
2003-03-24 12:02 ` Jens Axboe
2003-03-24 17:08   ` Randy.Dunlap [this message]
2003-03-24 17:21     ` Jens Axboe

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=33047.4.64.238.61.1048525736.squirrel@www.osdl.org \
    --to=rddunlap@osdl.org \
    --cc=axboe@suse.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

all inboxes | Powered by JetHome®