Messages in this thread Patch in this message |  | | From | Keith Owens <> | Subject | Re: undefined reference in 2.2.19 build with Reiserfs (was: Google's mm problem - not reproduced on 2.4.13) | Date | Fri, 02 Nov 2001 09:39:05 +1100 |
| |
On Thu, 1 Nov 2001 11:56:04 -0500 (EST), Sven Heinicke <sven@research.nj.nec.com> wrote: >fs/filesystems.a(reiserfs.o): In function `ip_check_balance': >reiserfs.o(.text+0x9cc2): undefined reference to `memset' >drivers/scsi/scsi.a(aic7xxx.o): In function `aic7xxx_load_seeprom': >aic7xxx.o(.text+0x117ff): undefined reference to `memcpy'
The aic7xxx reference to memcpy is a gcc feature. If you do an assignment of a complete structure then gcc may convert that into a call to memcpy(). Alas gcc does the conversion using the "standard" version of memcpy, not the "optimized by cpp" version that the kernel uses. Try this patch
Index: 19.1/drivers/scsi/aic7xxx.c --- 19.1/drivers/scsi/aic7xxx.c Tue, 13 Feb 2001 08:26:08 +1100 kaos (linux-2.2/d/b/43_aic7xxx.c 1.1.1.3.2.1.3.1.1.3 644) +++ 19.1(w)/drivers/scsi/aic7xxx.c Fri, 02 Nov 2001 09:36:49 +1100 kaos (linux-2.2/d/b/43_aic7xxx.c 1.1.1.3.2.1.3.1.1.3 644) @@ -9190,7 +9190,7 @@ aic7xxx_load_seeprom(struct aic7xxx_host p->flags |= AHC_TERM_ENB_SE_LOW | AHC_TERM_ENB_SE_HIGH; } } - p->sc = *sc; + memcpy(&(p->sc), sc, sizeof(p->sc)); } p->discenable = 0; Cannot help with the reiserfs problem, the code is not in the pristine 2.2.19 tree.
- 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/
|  |