linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <michael@ellerman.id.au>
To: Christoph Hellwig <hch@lst.de>
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 11/16] powerpc: add ps3 platform repository support
Date: Thu, 16 Nov 2006 11:12:54 +1100	[thread overview]
Message-ID: <1163635974.8805.10.camel@localhost.localdomain> (raw)
In-Reply-To: <20061115180613.GC18856@lst.de>

[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]

On Wed, 2006-11-15 at 19:06 +0100, Christoph Hellwig wrote:
> On Fri, Nov 10, 2006 at 12:03:08PM -0800, Geoff Levand wrote:
> > + * make_first_field - Make the first field of a repository node name.
> > + * @text: Text portion of the field.
> > + * @index: Numeric index portion of the field.  Use zero for 'don't care'.
> > + *
> > + * This routine sets the vendor id to zero (non-vendor specific).
> > + * Returns field value.
> > + */
> > +
> > +static u64 make_first_field(const char *text, u64 index)
> > +{
> > +	u64 n;
> > +
> > +	strncpy((char *)&n, text, 8);
> > +	return ps3pf_vendor_id_none + (n >> 32) + index;
> > +}
> 
> a strncpy into a const pointer doesn't make any sense.

It's from a const pointer into a u64.

It still doesn't make any sense though .. crazy hypervisor weirdness.

cheers

-- 
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-11-16  0:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10 20:03 [PATCH 11/16] powerpc: add ps3 platform repository support Geoff Levand
2006-11-15 18:06 ` Christoph Hellwig
2006-11-16  0:12   ` Michael Ellerman [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=1163635974.8805.10.camel@localhost.localdomain \
    --to=michael@ellerman.id.au \
    --cc=hch@lst.de \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).