[#7157] Fail to compile enc28j60 for spi net test in trunk
Submitted By: Vivi Li
Open Date
2012-06-13 05:39:44 Close Date
2012-06-19 05:28:18
Priority:
Medium Assignee:
Bob Liu
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
Make Errors Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
gcc4.3-2012_Feb_15
App binary format:
N/A
Summary: Fail to compile enc28j60 for spi net test in trunk
Details:
Fail to compile enc28j60 for spi net test in trunk.
I can find both drivers/net/ethernet/microchip/enc28j60.c and drivers/net/enc28j60.c use enc28j60_hw.h. These two C files are very similar. Are they duplicated?
--
test@uclinux50:linux-2.6.x> grep -nr "enc28j60_hw.h" .
./drivers/net/ethernet/microchip/enc28j60_hw.h:2: * enc28j60_hw.h: EDTP FrameThrower style enc28j60 registers
./drivers/net/ethernet/microchip/enc28j60_hw.h:4: * $Id: enc28j60_hw.h,v 1.9 2007/12/14 11:59:16 claudio Exp $
./drivers/net/ethernet/microchip/enc28j60.c:32:#include "enc28j60_hw.h"
./drivers/net/enc28j60.c:32:#include "enc28j60_hw.h"
test@uclinux50:linux-2.6.x>
--
Bellow is the error log:
--
CC drivers/net/ethernet/microchip/enc28j60.o
CC drivers/net/enc28j60.o
drivers/net/enc28j60.c:32:25: error: enc28j60_hw.h: No such file or directory
drivers/net/enc28j60.c:75: error: ‘MAX_FRAMELEN’ undeclared here (not in a function)
drivers/net/enc28j60.c: In function ‘spi_read_buf’:
drivers/net/enc28j60.c:100: error: ‘ENC28J60_READ_BUF_MEM’ undeclared (first use in this function)
drivers/net/enc28j60.c:100: error: (Each undeclared identifier is reported only once
drivers/net/enc28j60.c:100: error: for each function it appears in.)
drivers/net/enc28j60.c: In function ‘spi_write_buf’:
drivers/net/enc28j60.c:128: error: ‘ENC28J60_WRITE_BUF_MEM’ undeclared (first use in this function)
drivers/net/enc28j60.c: In function ‘spi_read_op’:
drivers/net/enc28j60.c:151: error: ‘SPRD_MASK’ undeclared (first use in this function)
drivers/net/enc28j60.c:154: error: ‘ADDR_MASK’ undeclared (first use in this function)
drivers/net/enc28j60.c: In function ‘spi_write_op’:
drivers/net/enc28j60.c:173: error: ‘ADDR_MASK’ undeclared (first use in this function)
drivers/net/enc28j60.c: In function ‘enc28j60_soft_reset’:
drivers/net/enc28j60.c:187: error: ‘ENC28J60_SOFT_RESET’ undeclared (first use in this function)
drivers/net/enc28j60.c: In function ‘enc28j60_set_bank’:
drivers/net/enc28j60.c:198: error: ‘BANK_MASK’ undeclared (first use in this function)
...
--
Follow-ups
--- Bob Liu 2012-06-18 05:03:43
fixed,
--- Vivi Li 2012-06-19 06:29:27
OK now. Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.linux.spi_net application/octet-stream 37903 Vivi Li