From: Keith Owens <kaos@ocs.com.au>
To: "Chris Funderburg" <chris@directcommunications.net>
Cc: "Linux-Kernel" <linux-kernel@vger.kernel.org>,
"Justin T. Gibbs" <gibbs@scsiguy.com>
Subject: Re: memcpy in 2.2.19
Date: Thu, 29 Mar 2001 23:28:37 -0800 [thread overview]
Message-ID: <7717.985937317@ocs3.ocs-net> (raw)
In-Reply-To: Your message of "Fri, 30 Mar 2001 08:04:17 +0100." <CHEEIAEEAIFDOCGJIAKPOEDCCJAA.chris@directcommunications.net>
On Fri, 30 Mar 2001 08:04:17 +0100,
"Chris Funderburg" <chris@directcommunications.net> wrote:
>drivers/scsi/scsi.a(aic7xxx.o): In function `aic7xxx_load_seeprom':
>aic7xxx.o(.text+0x116bf): undefined reference to `memcpy'
Under some circumstances gcc will generate an internal call to
memcpy(). Alas this bypasses the pre-processor so memcpy is not
converted to the kernel's internal memcpy code. The cause is normally
a structure assignment, probably this line.
struct seeprom_config *sc = (struct seeprom_config *) scarray;
Try this replacement
struct seeprom_config *sc;
memcpy(sc, scarray, sizeof(*sc));
The other possibility I can see is
p->sc = *sc;
try
memcpy(&(p->sc), sc, sizeof(*sc));
next prev parent reply other threads:[~2001-03-30 7:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-30 7:04 memcpy in 2.2.19 Chris Funderburg
2001-03-30 7:28 ` Keith Owens [this message]
2001-03-30 20:01 ` Horst von Brand
2001-03-30 10:00 ` Jeff Garzik
2001-04-02 7:32 ` Chris Funderburg
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=7717.985937317@ocs3.ocs-net \
--to=kaos@ocs.com.au \
--cc=chris@directcommunications.net \
--cc=gibbs@scsiguy.com \
--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;
as well as URLs for NNTP newsgroup(s).