[U-Boot] [PATCH v4 00/16] imx6: Add Engicam GEAM6UL/i.CoreM6 RQS board support

Stefano Babic sbabic at denx.de
Fri Dec 16 16:42:38 CET 2016


Hi Jagan,

On 16/12/2016 10:23, Jagan Teki wrote:
> Hi Stefano,
> 
> On Tue, Dec 13, 2016 at 5:56 PM, Jagan Teki <jagan at openedev.com> wrote:
>> From: Jagan Teki <jagan at amarulasolutions.com>
>>
>> This is v4 for previous v3, v2 series[1] [2] on top of [3] series
>>
>> Changes for v4:
>> - Add FEC patches.
>>
>> Changes for v3:
>> - Add I2C support
>>
>> Changes for v2:
>> - Add 'Acked-by' from Joe
>> - Add new i.CoreM6 RQS patches
>>
>> [1] https://www.mail-archive.com/u-boot@lists.denx.de/msg230990.html
>> [2] https://www.mail-archive.com/u-boot@lists.denx.de/msg230283.html
>> [3] [PATCH v3 00/13] imx6: icorem6: Add dm-eth, framebuffer and I2C support
>>
>> Jagan Teki (16):
>>   arm: dts: Add devicetree for i.MX6UL
>>   arm: imx6ul: Add Engicam GEAM6UL Starter Kit initial support
>>   arm: dts: imx6ul-geam: Add I2C nodes
>>   imx6: geam6ul: Add I2C support
>>   imx6: geam6ul: Add NAND support
>>   imx6: geam6ul: Enable MTD device support
>>   imx6: geam6ul: Add default mtd nand partition table
>>   arm: imx6q: Add Engicam i.CoreM6 Quad/Dual RQS Starter Kit initial
>>     support
>>   arm: imx6q: Add Engicam i.CoreM6 Solo/Duallite RQS Starter Kit initial
>>     support
>>   imx6: icorem6: Rename engicam icorem6 defconfig files
>>   arm: dts: imx6qdl-icore-rqs: Add I2C node's
>>   imx6: icorem6_rqs: Add I2C support
>>   arm: dts: imx6ul-geam: Add FEC node
>>   imx6: geam6ul: Add FEC support
>>   arm: dts: imx6qdl-icore-rqs: Add FEC node
>>   imx6: icorem6_rqs: Add FEC support
> 
> Any help? this is getting delay since so-long.
> 
> thanks!
> 

I am still getting a huge list of errors and warnings after merging your
patches. I have not yet got time to check deeper the reasons, but
without a clean build this patchset cannot be merged.

Here my log:

       arm:  +   imx6dl_icore_mmc
+drivers/net/fec_mxc.c: In function 'fec_set_hwaddr':
+drivers/net/fec_mxc.c:374:18: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:375:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: At top level:
+drivers/net/fec_mxc.c: In function 'fec_open':
+drivers/net/fec_mxc.c:432:48: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:502:27: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_init':
+drivers/net/fec_mxc.c:540:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:372:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:430:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_halt':
+drivers/net/fec_mxc.c:601:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_send':
+drivers/net/fec_mxc.c:653:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_recv':
+drivers/net/fec_mxc.c:788:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:599:13: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:538:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_probe':
+drivers/net/fec_mxc.c:989:44: error: invalid application of 'sizeof' to
incomplete type 'struct eth_device'
+drivers/net/fec_mxc.c:1003:25: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1010:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1011:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1012:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1013:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1014:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1015:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1034:23: error: dereferencing pointer to
incomplete type
+include/phy.h:225:6: note: expected 'struct udevice *' but argument is
of type 'struct eth_device *'
+drivers/net/fec_mxc.c:365:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:1050:14: error: dereferencing pointer to
incomplete type
+make[2]: *** [drivers/net/fec_mxc.o] Error 1
+make[1]: *** [drivers/net] Error 2
+make: *** [sub-make] Error 2
w+drivers/net/fec_mxc.c:366:7: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:366:7: warning: its scope is only this
definition or declaration, which is probably not what you want [enabled
by default]
w+drivers/net/fec_mxc.c:372:34: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:430:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:538:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:545:2: warning: passing argument 1 of
'fec_set_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:591:2: warning: passing argument 1 of 'fec_open'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:599:29: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:641:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:786:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:804:3: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:805:3: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:817:4: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:820:4: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1040:2: warning: passing argument 2 of
'phy_connect_dev' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1046:2: warning: implicit declaration of
function 'eth_register' [-Wimplicit-function-declaration]
w+drivers/net/fec_mxc.c:1048:2: warning: passing argument 1 of
'fec_get_hwaddr' from incompatible pointer type [enabled by default]
       arm:  +   imx6dl_icore_rqs_mmc
+cmd/i2c.c: In function 'i2c_get_bus_speed':
+cmd/i2c.c:211:9: error: 'CONFIG_SYS_I2C_SPEED' undeclared (first use in
this function)
+cmd/i2c.c:211:9: note: each undeclared identifier is reported only once
for each function it appears in
+cmd/i2c.c: In function 'i2c_set_bus_speed':
+cmd/i2c.c:230:15: error: 'CONFIG_SYS_I2C_SPEED' undeclared (first use
in this function)
+cmd/i2c.c: In function 'do_i2c_reset':
+cmd/i2c.c:1925:11: error: 'CONFIG_SYS_I2C_SPEED' undeclared (first use
in this function)
+make[2]: *** [cmd/i2c.o] Error 1
+make[1]: *** [cmd] Error 2
+make: *** [sub-make] Error 2
w+cmd/i2c.c: In function 'i2c_get_bus_speed':
w+cmd/i2c.c:212:1: warning: control reaches end of non-void function
[-Wreturn-type]
       arm:  +   imx6q_icore_mmc
+drivers/net/fec_mxc.c: In function 'fec_set_hwaddr':
+drivers/net/fec_mxc.c:374:18: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:375:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: At top level:
+drivers/net/fec_mxc.c: In function 'fec_open':
+drivers/net/fec_mxc.c:432:48: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:502:27: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_init':
+drivers/net/fec_mxc.c:540:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:372:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:430:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_halt':
+drivers/net/fec_mxc.c:601:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_send':
+drivers/net/fec_mxc.c:653:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_recv':
+drivers/net/fec_mxc.c:788:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:599:13: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:538:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_probe':
+drivers/net/fec_mxc.c:989:44: error: invalid application of 'sizeof' to
incomplete type 'struct eth_device'
+drivers/net/fec_mxc.c:1003:25: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1010:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1011:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1012:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1013:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1014:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1015:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1034:23: error: dereferencing pointer to
incomplete type
+include/phy.h:225:6: note: expected 'struct udevice *' but argument is
of type 'struct eth_device *'
+drivers/net/fec_mxc.c:365:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:1050:14: error: dereferencing pointer to
incomplete type
+make[2]: *** [drivers/net/fec_mxc.o] Error 1
+make[1]: *** [drivers/net] Error 2
+make: *** [sub-make] Error 2
w+drivers/net/fec_mxc.c:366:7: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:366:7: warning: its scope is only this
definition or declaration, which is probably not what you want [enabled
by default]
w+drivers/net/fec_mxc.c:372:34: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:430:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:538:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:545:2: warning: passing argument 1 of
'fec_set_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:591:2: warning: passing argument 1 of 'fec_open'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:599:29: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:641:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:786:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:804:3: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:805:3: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:817:4: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:820:4: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1040:2: warning: passing argument 2 of
'phy_connect_dev' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1046:2: warning: implicit declaration of
function 'eth_register' [-Wimplicit-function-declaration]
w+drivers/net/fec_mxc.c:1048:2: warning: passing argument 1 of
'fec_get_hwaddr' from incompatible pointer type [enabled by default]
       arm:  +   imx6q_icore_rqs_mmc
+cmd/i2c.c: In function 'i2c_get_bus_speed':
+cmd/i2c.c:211:9: error: 'CONFIG_SYS_I2C_SPEED' undeclared (first use in
this function)
+cmd/i2c.c:211:9: note: each undeclared identifier is reported only once
for each function it appears in
+cmd/i2c.c: In function 'i2c_set_bus_speed':
+cmd/i2c.c:230:15: error: 'CONFIG_SYS_I2C_SPEED' undeclared (first use
in this function)
+cmd/i2c.c: In function 'do_i2c_reset':
+cmd/i2c.c:1925:11: error: 'CONFIG_SYS_I2C_SPEED' undeclared (first use
in this function)
+make[2]: *** [cmd/i2c.o] Error 1
+make[1]: *** [cmd] Error 2
+make: *** [sub-make] Error 2
w+cmd/i2c.c: In function 'i2c_get_bus_speed':
w+cmd/i2c.c:212:1: warning: control reaches end of non-void function
[-Wreturn-type]
       arm:  +   imx6ul_geam_mmc
+drivers/net/fec_mxc.c: In function 'fec_set_hwaddr':
+drivers/net/fec_mxc.c:374:18: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:375:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: At top level:
+drivers/net/fec_mxc.c: In function 'fec_open':
+drivers/net/fec_mxc.c:432:48: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:502:27: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_init':
+drivers/net/fec_mxc.c:540:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:372:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:430:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_halt':
+drivers/net/fec_mxc.c:601:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_send':
+drivers/net/fec_mxc.c:653:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_recv':
+drivers/net/fec_mxc.c:788:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:599:13: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:538:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_probe':
+drivers/net/fec_mxc.c:989:44: error: invalid application of 'sizeof' to
incomplete type 'struct eth_device'
+drivers/net/fec_mxc.c:1003:25: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1010:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1011:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1012:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1013:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1014:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1015:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1034:23: error: dereferencing pointer to
incomplete type
+include/phy.h:225:6: note: expected 'struct udevice *' but argument is
of type 'struct eth_device *'
+drivers/net/fec_mxc.c:365:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:1050:14: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fecmxc_initialize':
+drivers/net/fec_mxc.c:1138:4: error: 'IMX_FEC_BASE' undeclared (first
use in this function)
+drivers/net/fec_mxc.c:1138:4: note: each undeclared identifier is
reported only once for each function it appears in
+make[2]: *** [drivers/net/fec_mxc.o] Error 1
+make[1]: *** [drivers/net] Error 2
+make: *** [sub-make] Error 2
w+drivers/net/fec_mxc.c:366:7: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:366:7: warning: its scope is only this
definition or declaration, which is probably not what you want [enabled
by default]
w+drivers/net/fec_mxc.c:372:34: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:430:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:538:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:545:2: warning: passing argument 1 of
'fec_set_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:591:2: warning: passing argument 1 of 'fec_open'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:599:29: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:641:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:786:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:804:3: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:805:3: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:817:4: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:820:4: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1040:2: warning: passing argument 2 of
'phy_connect_dev' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1046:2: warning: implicit declaration of
function 'eth_register' [-Wimplicit-function-declaration]
w+drivers/net/fec_mxc.c:1048:2: warning: passing argument 1 of
'fec_get_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1139:1: warning: control reaches end of non-void
function [-Wreturn-type]
       arm:  +   imx6ul_geam_nand
+drivers/net/fec_mxc.c: In function 'fec_set_hwaddr':
+drivers/net/fec_mxc.c:374:18: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:375:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: At top level:
+drivers/net/fec_mxc.c: In function 'fec_open':
+drivers/net/fec_mxc.c:432:48: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:502:27: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_init':
+drivers/net/fec_mxc.c:540:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:372:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:430:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_halt':
+drivers/net/fec_mxc.c:601:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_send':
+drivers/net/fec_mxc.c:653:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_recv':
+drivers/net/fec_mxc.c:788:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:599:13: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:538:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_probe':
+drivers/net/fec_mxc.c:989:44: error: invalid application of 'sizeof' to
incomplete type 'struct eth_device'
+drivers/net/fec_mxc.c:1003:25: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1010:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1011:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1012:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1013:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1014:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1015:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1034:23: error: dereferencing pointer to
incomplete type
+include/phy.h:225:6: note: expected 'struct udevice *' but argument is
of type 'struct eth_device *'
+drivers/net/fec_mxc.c:365:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:1050:14: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fecmxc_initialize':
+drivers/net/fec_mxc.c:1138:4: error: 'IMX_FEC_BASE' undeclared (first
use in this function)
+drivers/net/fec_mxc.c:1138:4: note: each undeclared identifier is
reported only once for each function it appears in
+make[2]: *** [drivers/net/fec_mxc.o] Error 1
+make[1]: *** [drivers/net] Error 2
+make: *** [sub-make] Error 2
w+drivers/net/fec_mxc.c:366:7: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:366:7: warning: its scope is only this
definition or declaration, which is probably not what you want [enabled
by default]
w+drivers/net/fec_mxc.c:372:34: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:430:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:538:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:545:2: warning: passing argument 1 of
'fec_set_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:591:2: warning: passing argument 1 of 'fec_open'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:599:29: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:641:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:786:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:804:3: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:805:3: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:817:4: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:820:4: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1040:2: warning: passing argument 2 of
'phy_connect_dev' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1046:2: warning: implicit declaration of
function 'eth_register' [-Wimplicit-function-declaration]
w+drivers/net/fec_mxc.c:1048:2: warning: passing argument 1 of
'fec_get_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1139:1: warning: control reaches end of non-void
function [-Wreturn-type]
  103    0    7 /124    0:01:10  : mx6sxsabresd
       arm:  +   imx6dl_icore_nand
+drivers/net/fec_mxc.c: In function 'fec_set_hwaddr':
+drivers/net/fec_mxc.c:374:18: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:375:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: At top level:
+drivers/net/fec_mxc.c: In function 'fec_open':
+drivers/net/fec_mxc.c:432:48: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:502:27: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_init':
+drivers/net/fec_mxc.c:540:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:372:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:430:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_halt':
+drivers/net/fec_mxc.c:601:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_send':
+drivers/net/fec_mxc.c:653:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_recv':
+drivers/net/fec_mxc.c:788:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:599:13: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:538:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_probe':
+drivers/net/fec_mxc.c:989:44: error: invalid application of 'sizeof' to
incomplete type 'struct eth_device'
+drivers/net/fec_mxc.c:1003:25: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1010:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1011:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1012:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1013:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1014:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1015:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1034:23: error: dereferencing pointer to
incomplete type
+include/phy.h:225:6: note: expected 'struct udevice *' but argument is
of type 'struct eth_device *'
+drivers/net/fec_mxc.c:365:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:1050:14: error: dereferencing pointer to
incomplete type
+make[2]: *** [drivers/net/fec_mxc.o] Error 1
+make[1]: *** [drivers/net] Error 2
+make: *** [sub-make] Error 2
w+drivers/net/fec_mxc.c:366:7: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:366:7: warning: its scope is only this
definition or declaration, which is probably not what you want [enabled
by default]
w+drivers/net/fec_mxc.c:372:34: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:430:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:538:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:545:2: warning: passing argument 1 of
'fec_set_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:591:2: warning: passing argument 1 of 'fec_open'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:599:29: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:641:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:786:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:804:3: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:805:3: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:817:4: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:820:4: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1040:2: warning: passing argument 2 of
'phy_connect_dev' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1046:2: warning: implicit declaration of
function 'eth_register' [-Wimplicit-function-declaration]
w+drivers/net/fec_mxc.c:1048:2: warning: passing argument 1 of
'fec_get_hwaddr' from incompatible pointer type [enabled by default]
       arm:  +   imx6q_icore_nand
+drivers/net/fec_mxc.c: In function 'fec_set_hwaddr':
+drivers/net/fec_mxc.c:374:18: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:375:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: At top level:
+drivers/net/fec_mxc.c: In function 'fec_open':
+drivers/net/fec_mxc.c:432:48: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:502:27: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_init':
+drivers/net/fec_mxc.c:540:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:372:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:430:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_halt':
+drivers/net/fec_mxc.c:601:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_send':
+drivers/net/fec_mxc.c:653:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c: In function 'fec_recv':
+drivers/net/fec_mxc.c:788:47: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:599:13: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:538:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c: In function 'fec_probe':
+drivers/net/fec_mxc.c:989:44: error: invalid application of 'sizeof' to
incomplete type 'struct eth_device'
+drivers/net/fec_mxc.c:1003:25: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1010:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1011:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1012:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1013:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1014:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1015:6: error: dereferencing pointer to
incomplete type
+drivers/net/fec_mxc.c:1034:23: error: dereferencing pointer to
incomplete type
+include/phy.h:225:6: note: expected 'struct udevice *' but argument is
of type 'struct eth_device *'
+drivers/net/fec_mxc.c:365:12: note: expected 'struct eth_device *' but
argument is of type 'struct eth_device *'
+drivers/net/fec_mxc.c:1050:14: error: dereferencing pointer to
incomplete type
+make[2]: *** [drivers/net/fec_mxc.o] Error 1
+make[1]: *** [drivers/net] Error 2
+make: *** [sub-make] Error 2
w+drivers/net/fec_mxc.c:366:7: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:366:7: warning: its scope is only this
definition or declaration, which is probably not what you want [enabled
by default]
w+drivers/net/fec_mxc.c:372:34: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:430:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:538:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:545:2: warning: passing argument 1 of
'fec_set_hwaddr' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:591:2: warning: passing argument 1 of 'fec_open'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:599:29: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:641:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:786:28: warning: 'struct eth_device' declared
inside parameter list [enabled by default]
w+drivers/net/fec_mxc.c:804:3: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:805:3: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:817:4: warning: passing argument 1 of 'fec_halt'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:820:4: warning: passing argument 1 of 'fec_init'
from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1040:2: warning: passing argument 2 of
'phy_connect_dev' from incompatible pointer type [enabled by default]
w+drivers/net/fec_mxc.c:1046:2: warning: implicit declaration of
function 'eth_register' [-Wimplicit-function-declaration]
w+drivers/net/fec_mxc.c:1048:2: warning: passing argument 1 of
'fec_get_hwaddr' from incompatible pointer type [enabled by default]
  115    0    9 /124    udoo

Best regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list