Hello,
I am attempting to compile the IXP400 ethernet module for an ixp425. When i issue the make modules i get this error dump

/home/akp/xscale/kernel/ixp400_xscale_sw/src/include/IxQueueAssignments.h:75:5: warning: "IX_UTOPIAMODE" is not defined /home/akp/xscale/kernel/ixp400_xscale_sw/src/include/IxQueueAssignments.h:78:5: warning: "IX_MPHYSINGLEPORT" is not defined drivers/net/ixp400_eth.c:434: error: `platform_bus_type' undeclared here (not in a function)
drivers/net/ixp400_eth.c:434: error: initializer element is not constant
drivers/net/ixp400_eth.c:434: error: (near initialization for `ixp400_eth_driver.bus') drivers/net/ixp400_eth.c:439: error: elements of array `ixp400_eth_devices' have incomplete type drivers/net/ixp400_eth.c:442: error: unknown field `name' specified in initializer
drivers/net/ixp400_eth.c:442: warning: excess elements in struct initializer
drivers/net/ixp400_eth.c:442: warning: (near initialization for `ixp400_eth_devices[0]') drivers/net/ixp400_eth.c:443:5: warning: "CONFIG_IXP400_ETH_NPEC_ONLY" is not defined drivers/net/ixp400_eth.c:446: error: unknown field `id' specified in initializer
drivers/net/ixp400_eth.c:446: warning: excess elements in struct initializer
drivers/net/ixp400_eth.c:446: warning: (near initialization for `ixp400_eth_devices[0]') drivers/net/ixp400_eth.c:448: error: unknown field `dev' specified in initializer
drivers/net/ixp400_eth.c:449: error: extra brace group at end of initializer
drivers/net/ixp400_eth.c:449: error: (near initialization for `ixp400_eth_devices[0]')
drivers/net/ixp400_eth.c:451: warning: excess elements in struct initializer
drivers/net/ixp400_eth.c:451: warning: (near initialization for `ixp400_eth_devices[0]') drivers/net/ixp400_eth.c:455: error: unknown field `name' specified in initializer
drivers/net/ixp400_eth.c:455: warning: excess elements in struct initializer
drivers/net/ixp400_eth.c:455: warning: (near initialization for `ixp400_eth_devices[1]') drivers/net/ixp400_eth.c:456:5: warning: "CONFIG_IXP400_ETH_NPEC_ONLY" is not defined drivers/net/ixp400_eth.c:459: error: unknown field `id' specified in initializer
drivers/net/ixp400_eth.c:459: warning: excess elements in struct initializer
drivers/net/ixp400_eth.c:459: warning: (near initialization for `ixp400_eth_devices[1]') drivers/net/ixp400_eth.c:461: error: unknown field `dev' specified in initializer
drivers/net/ixp400_eth.c:462: error: extra brace group at end of initializer
drivers/net/ixp400_eth.c:462: error: (near initialization for `ixp400_eth_devices[1]')
drivers/net/ixp400_eth.c:464: warning: excess elements in struct initializer
drivers/net/ixp400_eth.c:464: warning: (near initialization for `ixp400_eth_devices[1]')
drivers/net/ixp400_eth.c: In function `dev_skb_dequeue':
drivers/net/ixp400_eth.c:906: warning: implicit declaration of function `invalidate_dcache_range'
drivers/net/ixp400_eth.c: In function `dev_eth_type_trans':
drivers/net/ixp400_eth.c:1854: error: structure has no member named `stamp'
drivers/net/ixp400_eth.c: In function `dev_hard_start_xmit':
drivers/net/ixp400_eth.c:2446: warning: implicit declaration of function `clean_dcache_range'
drivers/net/ixp400_eth.c: In function `dev_eth_probe':
drivers/net/ixp400_eth.c:3199: warning: implicit declaration of function `to_platform_device'
drivers/net/ixp400_eth.c:3199: error: invalid type argument of `->'
drivers/net/ixp400_eth.c: In function `dev_eth_remove':
drivers/net/ixp400_eth.c:3478: error: invalid type argument of `->'
drivers/net/ixp400_eth.c: In function `ixp400_eth_init':
drivers/net/ixp400_eth.c:3649: warning: implicit declaration of function `platform_device_register' drivers/net/ixp400_eth.c:3649: error: invalid use of undefined type `struct platform_device'
drivers/net/ixp400_eth.c: In function `ixp400_eth_exit':
drivers/net/ixp400_eth.c:3816: warning: implicit declaration of function `platform_device_unregister' drivers/net/ixp400_eth.c:3816: error: invalid use of undefined type `struct platform_device'
include/linux/module.h: At top level:
drivers/net/ixp400_eth.c:439: error: storage size of `ixp400_eth_devices' isn't known
make[2]: *** [drivers/net/ixp400_eth.o] Error 1
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2

the toolchain is set to target big endian and the kernel that was compiled against this tool chain it fine and boots

the dir layout is per intels guide

workdir --|
               |
|
--
[email protected] mailing list

Reply via email to