HI
Mr paul
Mr Joel
Mr Alban
Whenever I am trying to compile my source code that
I get a lot of errors in fec.c kernel program.
Can anyone help me with this? .If anyone have a currect program for fec.c then please you will give me
that very helpful to my project. fec.c: In function ‘fec_enet_start_xmit’:
fec.c:362: error: dereferencing pointer to incomplete type
fec.c:363: error: expected ‘)’ before ‘fec_t’
fec.c:363: error: dereferencing pointer to incomplete type
fec.c:371: warning: assignment from incompatible pointer type
fec.c:374: error: request for member ‘cbd_sc’ in something not a structu re or union
fec.c:378: error: dereferencing pointer to incomplete type
fec.c:385: error: request for member ‘cbd_sc’ in something not a structu re or union
228 fec.c:389: error: request for member ‘cbd_bufaddr’ in something not a st ructure or union
229 fec.c:390: error: request for member ‘cbd_datlen’ in something not a str ucture or union
230 fec.c:412: error: request for member ‘cbd_sc’ in something not a structu re or union
231 fec.c:415: error: dereferencing pointer to incomplete type
232 fec.c:418: error: request for member ‘fec_x_des_active’ in something not a structure or union
233 fec.c:422: error: request for member ‘cbd_sc’ in something not a structu re or union
234 fec.c:423: warning: assignment from incompatible pointer type
235 fec.c:428: error: request for member ‘cbd_sc’ in something not a structu re or union
236 fec.c: In function ‘fec_timeout’:
237 fec.c:443: error: dereferencing pointer to incomplete type
238 fec.c:445: error: dereferencing pointer to incomplete type
239 fec.c: In function ‘fec_enet_interrupt’:
240 fec.c:491: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befor e ‘*’ token
241 fec.c:491: error: ‘fecp’ undeclared (first use in this function)
242 fec.c:499: error: expected ‘)’ before ‘fec_t’
243 fec.c:499: error: dereferencing pointer to incomplete type
244 fec.c:503: error: ‘int_events’ undeclared (first use in this function)
245 fec.c: In function ‘fec_enet_tx’:
246 fec.c:556: error: dereferencing pointer to incomplete type
247 fec.c: In function ‘fec_enet_rx’:
248 fec.c:651: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befor e ‘*’ token
249 fec.c:651: error: ‘fecp’ undeclared (first use in this function)
250 fec.c:657: error: dereferencing pointer to incomplete type
251 fec.c:658: error: expected ‘)’ before ‘fec_t’
252 fec.c:658: error: dereferencing pointer to incomplete type
253 fec.c:663: error: ‘bdp’ undeclared (first use in this function)
254 fec.c:734: warning: assignment makes pointer from integer without a cast 255 fec.c:737: error: dereferencing pointer to incomplete type
256 fec.c: In function ‘fec_enet_open’:
257 fec.c:1465: error: dereferencing pointer to incomplete type
258 fec.c: In function ‘fec_enet_get_stats’:
259 fec.c:1508: error: dereferencing pointer to incomplete type
260 fec.c: In function ‘set_multicast_list’:
261 fec.c:1526: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befo re ‘*’ token
262 fec.c:1526: error: ‘ep’ undeclared (first use in this function)
263 fec.c:1528: error: dereferencing pointer to incomplete type
264 fec.c:1529: error: ‘immap_t’ undeclared (first use in this function)
265 fec.c:1529: error: expected ‘)’ before ‘IMAP_ADDR’
266 fec.c:1531: error: dereferencing pointer to incomplete type
267 fec.c:1534: error: dereferencing pointer to incomplete type
268 fec.c:1540: error: dereferencing pointer to incomplete type
269 fec.c: In function ‘fec_enet_init’:
270 fec.c:1595: error: ‘dma_addr_t’ undeclared (first use in this function)
271 fec.c:1595: error: expected ‘;’ before ‘mem_addr’
re ‘*’ token
273 fec.c:1598: error: ‘immap’ undeclared (first use in this function)
274 fec.c:1601: error: ‘bd_t’ undeclared (first use in this function)
275 fec.c:1601: error: ‘bd’ undeclared (first use in this function)
276 fec.c:1606: error: ‘immap_t’ undeclared (first use in this function)
277 fec.c:1606: error: expected expression before ‘)’ token
278 fec.c:1608: error: expected expression before ‘)’ token
279 fec.c:1610: warning: assignment makes pointer from integer without a cas t
280 fec.c:1614: error: dereferencing pointer to incomplete type
281 fec.c:1616: error: ‘fecp’ undeclared (first use in this function)
282 fec.c:1651: error: dereferencing pointer to incomplete type
283 fec.c:1661: error: dereferencing pointer to incomplete type
284 fec.c:1662: error: ‘mem_addr’ undeclared (first use in this function)
285 fec.c:1679: error: dereferencing pointer to incomplete type
286 fec.c:1712: warning: passing argument 2 of ‘request_irq’ from incompatib le pointer type
287 fec.c:1737: error: dereferencing pointer to incomplete type
288 fec.c:1740: error: dereferencing pointer to incomplete type
289 fec.c:1741: error: dereferencing pointer to incomplete type
290 fec.c:1742: error: dereferencing pointer to incomplete type
291 fec.c:1743: error: dereferencing pointer to incomplete type
fec.c:1744: error: dereferencing pointer to incomplete type
293 fec.c:1745: error: dereferencing pointer to incomplete type
294 fec.c:1746: error: dereferencing pointer to incomplete type
295 fec.c:1760: error: ‘SPRN_IMMR’ undeclared (first use in this function)
296 fec.c:1785: error: dereferencing pointer to incomplete type
297 fec.c:1791: error: dereferencing pointer to incomplete type
298 fec.c: In function ‘fec_restart’:
299 fec.c:1822: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befo re ‘*’ token
300 fec.c:1822: error: ‘immap’ undeclared (first use in this function)
301 fec.c:1826: error: ‘immap_t’ undeclared (first use in this function)
302 fec.c:1826: error: expected expression before ‘)’ token
303 fec.c:1831: error: ‘fecp’ undeclared (first use in this function)
304 fec.c:1833: error: dereferencing pointer to incomplete type
305 fec.c: In function ‘fec_stop’:
306 fec.c:1958: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befo re ‘*’ token
307 fec.c:1958: error: ‘immap’ undeclared (first use in this function)
308 fec.c:1962: error: ‘immap_t’ undeclared (first use in this function)
309 fec.c:1962: error: expected expression before ‘)’ token
310 fec.c:1965: error: ‘fecp’ undeclared (first use in this function)
311 fec.c:1971: error: dereferencing pointer to incomplete type
venkat