take a look on thiz and give me solutions

take a look on thiz and give me solutions

Post by yeah » Sat, 08 Sep 2007 20:54:07


hi
I got following errrors while compiling "bfin_adv7393fb.c"(a device
driver pgm).And i used
obj-m := bfin_adv7393fb.o
make -C /usr/src/kernels/2.6.11-1.1369_FC4-smp-i686/ M=`pwd`
modules
for compilation.give up some solution for thiz prob..

the errors are::::
[root@localhost prac]# make -C /usr/src/kernels/2.6.11-1.1369_FC4-smp-
i686/ M=`pwd` modules
make: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-smp-i686'
CC [M] /root/prac/bfin_adv7393fb.o
In file included from include/asm/blackfin.h:9,
from /root/prac/bfin_adv7393fb.c:51:
include/asm/macros.h:8: error: syntax error before '.' token
include/asm/macros.h:9: error: stray '\' in program
include/asm/macros.h:9: error: stray '\' in program
include/asm/macros.h:9: error: stray '@' in program
include/asm/macros.h:10: error: stray '\' in program
include/asm/macros.h:10: error: stray '\' in program
include/asm/macros.h:10: error: stray '\' in program
include/asm/macros.h:10: error: stray '@' in program
include/asm/macros.h:39: error: stray '\' in program
include/asm/macros.h:50: error: stray '\' in program
include/asm/macros.h:51: error: stray '\' in program
include/asm/macros.h:60: error: stray '\' in program
include/asm/macros.h:60: error: stray '\' in program
include/asm/macros.h:69: error: stray '\' in program
include/asm/macros.h:69: error: stray '\' in program
include/asm/macros.h:79: error: stray '\' in program
include/asm/macros.h:80: error: stray '\' in program
/root/prac/bfin_adv7393fb.c:66: error: 'VMODE' undeclared here (not in
a function)
/root/prac/bfin_adv7393fb.c:131: warning: initialization from
incompatible pointer type
/root/prac/bfin_adv7393fb.c: In function 'dma_desc_list':
/root/prac/bfin_adv7393fb.c:137: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:141: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:141: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:141: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:141: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:141: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:141: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:143: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:147: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:147: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:147: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:147: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:147: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:147: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:149: error: invalid application of
'sizeof' to incomplete type 'struct dmasg_t'
/root/prac/bfin_adv7393fb.c:153: error: invalid application of
'sizeof' to incomplete type 'struct d
 
 
 

take a look on thiz and give me solutions

Post by Clemens La » Sat, 08 Sep 2007 22:05:31


I'd guess that the "2.6.11-1.1369_FC4-smp-i686" kernel is configured
for the wrong architecture (i686 instead of blackfin).


HTH
Clemens