From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] sunxi configs break with CONFIG_API in v2015.10-rc4
Date: Sun, 4 Oct 2015 19:28:36 +0200 [thread overview]
Message-ID: <561161C4.2080703@redhat.com> (raw)
In-Reply-To: <56115385.8010607@suse.de>
Hi,
On 10/04/2015 06:27 PM, Andreas F?rber wrote:
> Hi,
>
> For at least Bananapi, Cubieboard, Cubieboard2, Cubietruck, Mele_A1000,
> A10-OLinuXino-Lime, A13-OLinuXino, A20-OLinuXino-Lime2 and probably
> other sunxi boards, enabling CONFIG_API in the distro defaults header
> leads to build failures like this one:
>
> [ 105s] CC api/api_net.o
> [ 105s] api/api_net.c: In function 'dev_enum_net':
> [ 105s] api/api_net.c:61:35: warning: initialization from incompatible
> pointer type [-Wincompatible-pointer-types]
> [ 105s] struct eth_device *eth_current = eth_get_dev();
> [ 105s] ^
> [ 105s] api/api_net.c:68:39: error: dereferencing pointer to incomplete
> type 'struct eth_device'
> [ 105s] memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
> [ 105s] ^
> [ 105s] scripts/Makefile.build:277: recipe for target 'api/api_net.o'
> failed
> [ 105s] make[1]: *** [api/api_net.o] Error 1
> [ 105s] Makefile:1191: recipe for target 'api' failed
> [ 105s] make: *** [api] Error 2
It looks like this is caused by the api code not supporting the
driver-model for ethernet, whereas sunxi uses that.
Regards,
Hans
prev parent reply other threads:[~2015-10-04 17:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-04 16:27 [U-Boot] sunxi configs break with CONFIG_API in v2015.10-rc4 Andreas Färber
2015-10-04 17:28 ` Hans de Goede [this message]
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=561161C4.2080703@redhat.com \
--to=hdegoede@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox