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 dmasg_t' /root/prac/bfin_adv7393fb.c:153: 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 dmasg_t' /root/prac/bfin_adv7393fb.c:153: 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 dmasg_t' /root/prac/bfin_adv7393fb.c:153: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:155: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:159: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:159: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:159: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:159: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:159: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:159: error: invalid application of 'sizeof' to incomplete type 'struct dmasg_t' /root/prac/bfin_adv7393fb.c:162: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:163: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:164: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:165: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:171: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:171: error: 'VB_DUMMY_MEMORY_SOURCE' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c:171: error: (Each undeclared identifier is reported only once /root/prac/bfin_adv7393fb.c:171: error: for each function it appears in.) /root/prac/bfin_adv7393fb.c:172: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:172: error: 'DMA_CFG_VAL' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c:174: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:177: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:178: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:179: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:183: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:184: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:185: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:187: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:188: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:189: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:195: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:196: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:197: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:200: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:201: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:202: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:206: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:209: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:211: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:214: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:215: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:217: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c: In function 'bfin_config_dma': /root/prac/bfin_adv7393fb.c:260: warning: implicit declaration of function 'assert' /root/prac/bfin_adv7393fb.c:262: warning: implicit declaration of function 'set_dma_x_count' /root/prac/bfin_adv7393fb.c:262: error: 'CH_PPI' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c:262: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:263: warning: implicit declaration of function 'set_dma_x_modify' /root/prac/bfin_adv7393fb.c:263: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:264: warning: implicit declaration of function 'set_dma_y_count' /root/prac/bfin_adv7393fb.c:264: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:265: warning: implicit declaration of function 'set_dma_y_modify' /root/prac/bfin_adv7393fb.c:265: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:266: warning: implicit declaration of function 'set_dma_start_addr' /root/prac/bfin_adv7393fb.c:266: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:267: warning: implicit declaration of function 'set_dma_next_desc_addr' /root/prac/bfin_adv7393fb.c:268: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:269: warning: implicit declaration of function 'set_dma_config' /root/prac/bfin_adv7393fb.c:269: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c: In function 'bfin_disable_dma': /root/prac/bfin_adv7393fb.c:276: warning: implicit declaration of function 'bfin_write_DMA0_CONFIG' /root/prac/bfin_adv7393fb.c:276: warning: implicit declaration of function 'bfin_read_DMA0_CONFIG' /root/prac/bfin_adv7393fb.c:276: error: 'DMAEN' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c: In function 'bfin_config_ppi': /root/prac/bfin_adv7393fb.c:293: warning: implicit declaration of function 'bfin_write_PPI_CONTROL' /root/prac/bfin_adv7393fb.c:294: warning: implicit declaration of function 'bfin_write_PPI_FRAME' /root/prac/bfin_adv7393fb.c:295: warning: implicit declaration of function 'bfin_write_PPI_COUNT' /root/prac/bfin_adv7393fb.c:297: warning: implicit declaration of function 'bfin_write_PPI_DELAY' /root/prac/bfin_adv7393fb.c: In function 'bfin_enable_ppi': /root/prac/bfin_adv7393fb.c:302: warning: implicit declaration of function 'bfin_read_PPI_CONTROL' /root/prac/bfin_adv7393fb.c:302: error: 'PORT_EN' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c: In function 'bfin_disable_ppi': /root/prac/bfin_adv7393fb.c:307: error: 'PORT_EN' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c: In function 'adv7393_detect_client': /root/prac/bfin_adv7393fb.c:380: warning: implicit declaration of function 'kzalloc' /root/prac/bfin_adv7393fb.c:380: warning: assignment makes pointer from integer without a cast /root/prac/bfin_adv7393fb.c: In function 'ppi_irq_error': /root/prac/bfin_adv7393fb.c:478: warning: implicit declaration of function 'bfin_read_PPI_STATUS' /root/prac/bfin_adv7393fb.c:485: warning: implicit declaration of function 'bfin_clear_PPI_STATUS' /root/prac/bfin_adv7393fb.c: In function 'adv7393_write_proc': /root/prac/bfin_adv7393fb.c:532: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result /root/prac/bfin_adv7393fb.c: In function 'bfin_adv7393_fb_init': /root/prac/bfin_adv7393fb.c:558: warning: assignment makes pointer from integer without a cast /root/prac/bfin_adv7393fb.c:626: error: 'CH_PPI' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c:633: error: 'IRQ_PPI_ERROR' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c:633: error: 'IRQF_DISABLED' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c: In function 'bfin_adv7393_fb_open': /root/prac/bfin_adv7393fb.c:701: error: 'IRQ_PPI_ERROR' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c: In function 'bfin_adv7393_fb_release': /root/prac/bfin_adv7393fb.c:716: error: 'IRQ_PPI_ERROR' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c: In function 'bfin_adv7393_fb_pan_display': /root/prac/bfin_adv7393fb.c:781: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:785: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c:786: error: dereferencing pointer to incomplete type /root/prac/bfin_adv7393fb.c: In function 'bfin_adv7393_fb_exit': /root/prac/bfin_adv7393fb.c:835: error: 'CH_PPI' undeclared (first use in this function) /root/prac/bfin_adv7393fb.c:836: error: 'IRQ_PPI_ERROR' undeclared (first use in this function) make[1]: *** [/root/prac/bfin_adv7393fb.o] Error 1 make: *** [_module_/root/prac] Error 2 make: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-smp-i686' [root@localhost prac]#