All of lore.kernel.org
 help / color / mirror / Atom feed
From: david stevenson <david@avoncliff.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] problem compiling sc520
Date: Mon, 4 Aug 2003 21:35:48 +0100	[thread overview]
Message-ID: <200308042135.48979.david@avoncliff.com> (raw)
In-Reply-To: <20030804211846.1D746C602D@atlas.denx.de>

On Monday 04 August 2003 10:18 pm, Wolfgang Denk wrote:
> In message <200308041917.13511.david@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

  reply	other threads:[~2003-08-04 20:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 15:52 [U-Boot-Users] problem compiling sc520 david stevenson
2003-08-04 19:14 ` Wolfgang Denk
2003-08-04 18:17   ` david stevenson
2003-08-04 21:18     ` Wolfgang Denk
2003-08-04 20:35       ` david stevenson [this message]
2003-08-04 20:59         ` david stevenson
2003-08-05  6:54           ` Wolfgang Denk
2003-08-05  6:53         ` Wolfgang Denk
2003-08-04 21:53     ` Marc Singer

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=200308042135.48979.david@avoncliff.com \
    --to=david@avoncliff.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.