lkml.org 
[lkml]   [2001]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: memcpy in 2.2.19
Date
From
Keith Owens <kaos@ocs.com.au> said:
> 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;

Just a pointer initialization.

[...]

> The other possibility I can see is
>
> p->sc = *sc;
>
> try
>
> memcpy(&(p->sc), sc, sizeof(*sc));
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.038 / U:0.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site