All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] 83xx 85xx: UEC: Implicit declaration of function 'uec_standard_init'
Date: Tue, 16 Jun 2009 13:33:57 -0700	[thread overview]
Message-ID: <4A3801B5.1070809@gmail.com> (raw)
In-Reply-To: <4A380094.6080202@RuggedCom.com>

Hi Richard,

Richard Retanubun wrote:
> Ben Warren wrote:
>> Hi Richard,
> [snip]
>> Looks like some networking code snuck in through the back door:
>>
>> http://git.denx.de/?p=u-boot.git;a=commit;h=8e55258f144764de8902e9f078a7ad4c6c022c2f 
>>
>>
>> include/netdev.h should contain the definitive public API for device 
>> initialization.
>>
>> Does removing '#include "netdev.h' in cpu.c fix it?
>
> Hi Ben,
>
> Thanks for the quick reply :)
Just sitting in my cube, waiting for a compile to finish :)
>
> If by '#include "netdev.h' in cpu.c you mean this:
>
> diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
> index c4331ae..dc463aa 100644
> --- a/cpu/mpc83xx/cpu.c
> +++ b/cpu/mpc83xx/cpu.c
> @@ -33,7 +33,8 @@
>  #include <asm/processor.h>
>  #include <libfdt.h>
>  #include <tsec.h>
> -#include <netdev.h>
> +#include "../../drivers/qe/uec.h"
>  #include <fsl_esdhc.h>
>  #ifdef CONFIG_BOOTCOUNT_LIMIT
>  #include <asm/immap_qe.h>
>
> Then no (well, it does fix the conflicting declaration of 
> uec_initialize between uec.h and netdev.h) but the error of:
>
> In file included from cpu.c:36:
> ../../drivers/qe/uec.h:699: error: expected specifier-qualifier-list 
> before 'ucc_fast_info_t'
> ../../drivers/qe/uec.h:722: error: expected specifier-qualifier-list 
> before 'ucc_fast_private_t'
> make[1]: *** [cpu.o] Error 1
> make: *** [cpu/mpc83xx/libmpc83xx.a] Error 2
>
> Still remains.
>
> - Richard
>
How about removing the  include "netdev.h" and adding:

extern int uec_standard_init(bd_t *bis);

IMHO this submission should be backed out - it looks like it wasn't 
properly baked.

regards,
Ben

  reply	other threads:[~2009-06-16 20:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-16 20:06 [U-Boot] 83xx 85xx: UEC: Implicit declaration of function 'uec_standard_init' Richard Retanubun
2009-06-16 20:20 ` Ben Warren
2009-06-16 20:29   ` Richard Retanubun
2009-06-16 20:33     ` Ben Warren [this message]
2009-06-16 20:50       ` Richard Retanubun
2009-06-16 21:16         ` Kumar Gala
2009-06-17 12:27           ` Richard Retanubun
2009-06-17 13:15             ` Kumar Gala
2009-06-17 13:22         ` Kumar Gala

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=4A3801B5.1070809@gmail.com \
    --to=biggerbadderben@gmail.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.