mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bodo Eggert <7eggert@gmx.de>
To: "Miguel Botón" <mboton.lkml@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix "passing argument # of '__memcpy' discards qualifiers from pointer target type" warnings
Date: Wed, 24 Oct 2007 17:25:30 +0200	[thread overview]
Message-ID: <E1Iki6s-0000g8-N2@be1.lrz> (raw)
In-Reply-To: <9hPIG-7In-19@gated-at.bofh.it>

Miguel Botón <mboton.lkml@gmail.com> wrote:

> This patch fixes the warnings "passing argument 1 of '__memcpy' discards
> qualifiers from pointer target type" and "passing argument 2 of '__memcpy'
> discards qualifiers from pointer target type" when compiling some files.
> 
> I don't really know if this is the best way but at least I don't get more
> warnings.

> +++ linux-2.6.24-rc1/fs/cifs/dir.c    2007-10-24 15:49:44.000000000 +0200
> @@ -585,6 +585,7 @@

> +     unsigned char *dstname = (unsigned char *)a->name;

> @@ -593,7 +594,7 @@

> -             memcpy((unsigned char *)a->name, b->name, a->len);
> +             memcpy(dstname, b->name, a->len);

This looks like a compiler bug. Get the gcc people to fix it.
-- 
Top 100 things you don't want the sysadmin to say:
20. ...and if we just swap these two disc controllers like _this_...

Friß, Spammer: wd@bse.7eggert.dyndns.org esmpv@zxw.7eggert.dyndns.org

       reply	other threads:[~2007-10-24 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9hPIG-7In-19@gated-at.bofh.it>
2007-10-24 15:25 ` Bodo Eggert [this message]
2007-10-24 20:35   ` linux-os (Dick Johnson)
2007-10-24 14:39 Miguel Botón

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=E1Iki6s-0000g8-N2@be1.lrz \
    --to=7eggert@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mboton.lkml@gmail.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

all inboxes | Powered by JetHome®