public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] libgenwrap.c: fix build error
@ 2010-12-23 18:53 Wolfgang Denk
  2010-12-24 18:27 ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2010-12-23 18:53 UTC (permalink / raw)
  To: u-boot

Commit 882b7d7 "do_reset: unify duplicate prototypes" introduced build
problems like this:

libgenwrap.c:85: error: conflicting types for 'do_reset'
/home/wd/git/u-boot/work/include/command.h:102: error: previous declaration of 'do_reset' was here

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
---
 examples/api/libgenwrap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/examples/api/libgenwrap.c b/examples/api/libgenwrap.c
index 9733bbc..873cf34 100644
--- a/examples/api/libgenwrap.c
+++ b/examples/api/libgenwrap.c
@@ -81,9 +81,10 @@ void __udelay(unsigned long usec)
 	ub_udelay(usec);
 }
 
-void do_reset (void)
+int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
 	ub_reset();
+	return 0;
 }
 
 void *malloc (size_t len)
-- 
1.7.3.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] libgenwrap.c: fix build error
  2010-12-23 18:53 [U-Boot] [PATCH] libgenwrap.c: fix build error Wolfgang Denk
@ 2010-12-24 18:27 ` Mike Frysinger
  2010-12-29  5:02   ` Mike Frysinger
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2010-12-24 18:27 UTC (permalink / raw)
  To: u-boot

On Thursday, December 23, 2010 13:53:16 Wolfgang Denk wrote:
> Commit 882b7d7 "do_reset: unify duplicate prototypes" introduced build
> problems like this:
> 
> libgenwrap.c:85: error: conflicting types for 'do_reset'
> /home/wd/git/u-boot/work/include/command.h:102: error: previous declaration
> of 'do_reset' was here
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Mike Frysinger <vapier@gentoo.org>

i wrote this patch like two weeks ago, but i guess i forgot to send it out.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101224/1009928b/attachment.pgp 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] libgenwrap.c: fix build error
  2010-12-24 18:27 ` Mike Frysinger
@ 2010-12-29  5:02   ` Mike Frysinger
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2010-12-29  5:02 UTC (permalink / raw)
  To: u-boot

On Friday, December 24, 2010 13:27:25 Mike Frysinger wrote:
> On Thursday, December 23, 2010 13:53:16 Wolfgang Denk wrote:
> > Commit 882b7d7 "do_reset: unify duplicate prototypes" introduced build
> > problems like this:
> > 
> > libgenwrap.c:85: error: conflicting types for 'do_reset'
> > /home/wd/git/u-boot/work/include/command.h:102: error: previous
> > declaration of 'do_reset' was here
> > 
> > Signed-off-by: Wolfgang Denk <wd@denx.de>
> > Cc: Mike Frysinger <vapier@gentoo.org>
> 
> i wrote this patch like two weeks ago, but i guess i forgot to send it out.

nm, i did send it out:
	http://patchwork.ozlabs.org/patch/76159/
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101229/c4e33759/attachment.pgp 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-29  5:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23 18:53 [U-Boot] [PATCH] libgenwrap.c: fix build error Wolfgang Denk
2010-12-24 18:27 ` Mike Frysinger
2010-12-29  5:02   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox