[U-Boot-Users] problem compiling sc520
david stevenson
david at avoncliff.com
Mon Aug 4 22:35:48 CEST 2003
On Monday 04 August 2003 10:18 pm, Wolfgang Denk wrote:
> In message <200308041917.13511.david at avoncliff.com> you wrote:
> > > Try replacing the "done:" with "done: ;"
> >
> > Yes that works fine. (strange the things I learn about C day by day 8-)
> > )
> >
> > > If it works, please submit a patch.
> >
> > Hmm, request understood. Practice not so easy.
>
> Well, maybe you mention the name of the file in question...
>
I may have been making problems for myself..
but first when I put -Werror back in there was a problem in cmd_eeprom.c
Index: common/cmd_eeprom.c
===================================================================
RCS file: /cvsroot//u-boot/u-boot/common/cmd_eeprom.c,v
retrieving revision 1.5
diff -u -r1.5 cmd_eeprom.c
--- common/cmd_eeprom.c 1 Jul 2003 21:07:07 -0000 1.5
+++ common/cmd_eeprom.c 4 Aug 2003 23:04:04 -0000
@@ -36,6 +36,11 @@
uchar *buffer, unsigned cnt);
#endif
+#ifdef CONFIG_SPI
+extern ssize_t spi_read(uchar *addr, int alen, uchar *buffer, int len);
+extern ssize_t spi_write (uchar *, int, uchar *, int);
+extern void spi_init_f (void);
+#endif
#if defined(CFG_EEPROM_X40430)
/* Maximum number of times to poll for acknowledge after write */
This may well not be the correct fix, but it allowed me to continue with
done:; problem
Index: board/sc520_cdp/flash.c
===================================================================
RCS file: /cvsroot//u-boot/u-boot/board/sc520_cdp/flash.c,v
retrieving revision 1.4
diff -u -r1.4 flash.c
--- board/sc520_cdp/flash.c 27 Jun 2003 21:32:24 -0000 1.4
+++ board/sc520_cdp/flash.c 4 Aug 2003 23:23:27 -0000
@@ -325,7 +325,7 @@
}
printf ("\n");
- done:
+ done:;
}
and now it compiles as far as unknown pci_find_class with -Werror enabled.
(not sure why I thought there were lots of these errors, now I can only find
one! )
David
More information about the U-Boot
mailing list