[root@e14-24 kernel]# make Using kernel headers in /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -O2 -fomit-frame-pointer -finline-functions -DMODULE -DMODVERSIONS -include /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/linux/modversions.h -DREDHAT_KERNEL -I. -I/lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include -I/home/mile/mtxdrivers-rh9.0-v1.1.0-beta/include -I/home/mile/mtxdrivers-rh9.0-v1.1.0-beta/include/mtxvxd -c mtx_drv.c -o mtx_drv.o In file included from /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/linux/spinlock.h:7, from /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/linux/module.h:11, from mtx_drv.h:33, from mtx_drv.c:17: /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/asm/system.h: In function `__set_64bit_var': /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/asm/system.h:190: warning: dereferencing type-punned pointer will break strict-aliasing rules In file included from /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/linux/vmalloc.h:8, from /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/asm/io.h:47, from /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/asm/pci.h:41, from /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/linux/pci.h:680, from mtx_drv.h:38, from mtx_drv.c:17: /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/linux/highmem.h: In function `bh_kmap': /lib/modules/2.4.26-1.ll.rhfc1.ccrma/build/include/linux/highmem.h:20: warning: pointer of type `void *' used in arithmetic In file included from mtx_drv.c:17: mtx_drv.h:45:25: MtxTypesLnx.h: No such file or directory mtx_drv.h:50:20: MtxMem.h: No such file or directory In file included from mtx_drv.h:51, from mtx_drv.c:17: mtx_reg_access.h:21:20: MtxPci.h: No such file or directory In file included from mtx_drv.h:51, from mtx_drv.c:17: mtx_reg_access.h: At top level: mtx_reg_access.h:24: error: syntax error before "DWORD" mtx_reg_access.h:24: error: syntax error before "hReg" mtx_reg_access.h:24: warning: type defaults to `int' in declaration of `regReadDword' mtx_reg_access.h:24: warning: function declaration isn't a prototype mtx_reg_access.h:24: warning: data definition has no type or storage class mtx_reg_access.h:25: error: syntax error before "DWORD" mtx_reg_access.h:25: error: syntax error before "hReg" mtx_reg_access.h:25: warning: type defaults to `int' in declaration of `regReadWord' mtx_reg_access.h:25: warning: function declaration isn't a prototype mtx_reg_access.h:25: warning: data definition has no type or storage class mtx_reg_access.h:26: error: syntax error before "DWORD" mtx_reg_access.h:26: error: syntax error before "hReg" mtx_reg_access.h:26: warning: type defaults to `int' in declaration of `regReadByte' mtx_reg_access.h:26: warning: function declaration isn't a prototype mtx_reg_access.h:26: warning: data definition has no type or storage class mtx_reg_access.h:27: error: syntax error before "DWORD" mtx_reg_access.h:27: error: syntax error before "hReg" mtx_reg_access.h:27: warning: type defaults to `int' in declaration of `regWriteDword' mtx_reg_access.h:27: warning: function declaration isn't a prototype mtx_reg_access.h:27: warning: data definition has no type or storage class mtx_reg_access.h:28: error: syntax error before "DWORD" mtx_reg_access.h:28: error: syntax error before "hReg" mtx_reg_access.h:28: warning: type defaults to `int' in declaration of `regWriteWord' mtx_reg_access.h:28: warning: function declaration isn't a prototype mtx_reg_access.h:28: warning: data definition has no type or storage class mtx_reg_access.h:29: error: syntax error before "DWORD" mtx_reg_access.h:29: error: syntax error before "hReg" mtx_reg_access.h:29: warning: type defaults to `int' in declaration of `regWriteByte' mtx_reg_access.h:29: warning: function declaration isn't a prototype mtx_reg_access.h:29: warning: data definition has no type or storage class In file included from mtx_drv.c:17: mtx_drv.h:186: error: syntax error before "MTXHANDLE" mtx_drv.h:186: warning: no semicolon at end of struct or union mtx_drv.h:192: warning: type defaults to `int' in declaration of `mtx_context_t'mtx_drv.h:192: warning: data definition has no type or storage class mtx_drv.h:206: error: syntax error before "mtx_context_t" mtx_drv.h:206: warning: no semicolon at end of struct or union mtx_drv.h:208: warning: type defaults to `int' in declaration of `mtx_file_t' mtx_drv.h:208: warning: data definition has no type or storage class mtx_drv.h:271: error: syntax error before "MTXHANDLE" mtx_drv.h:271: warning: no semicolon at end of struct or union mtx_drv.h:280: error: syntax error before '}' token mtx_drv.h:280: warning: type defaults to `int' in declaration of `mtx_device_t' mtx_drv.h:280: warning: data definition has no type or storage class mtx_drv.h:283: error: syntax error before "MEMHANDLE" mtx_drv.h:283: error: syntax error before "hDev" mtx_drv.h:284: warning: return type defaults to `int' mtx_drv.h:284: warning: function declaration isn't a prototype mtx_drv.h: In function `GetRegisterHandle': mtx_drv.h:285: error: `pDevice' undeclared (first use in this function) mtx_drv.h:285: error: (Each undeclared identifier is reported only once mtx_drv.h:285: error: for each function it appears in.) mtx_drv.h:285: error: syntax error before ')' token mtx_drv.h: At top level: mtx_drv.h:404: error: syntax error before '*' token mtx_drv.h:404: warning: function declaration isn't a prototype mtx_drv.h: In function `mtx_find_region_from_base': mtx_drv.h:409: error: `dev' undeclared (first use in this function) mtx_drv.h:409: warning: left-hand operand of comma expression has no effect mtx_drv.h:411: error: `base' undeclared (first use in this function) mtx_drv.h: At top level: mtx_drv.h:425: error: syntax error before '*' token mtx_drv.h:425: warning: function declaration isn't a prototype mtx_drv.h: In function `mtx_find_region_from_virt': mtx_drv.h:430: error: `dev' undeclared (first use in this function) mtx_drv.h:430: warning: left-hand operand of comma expression has no effect mtx_drv.h:432: error: `kaddr' undeclared (first use in this function) mtx_drv.h: At top level: mtx_drv.h:505: error: syntax error before '*' token mtx_drv.h:505: warning: function declaration isn't a prototype mtx_drv.h:506: error: syntax error before '*' token mtx_drv.h:506: warning: function declaration isn't a prototype mtx_drv.h:507: error: syntax error before '*' token mtx_drv.h:507: warning: function declaration isn't a prototype mtx_drv.h:508: error: syntax error before '*' token mtx_drv.h:508: warning: function declaration isn't a prototype mtx_drv.h:513: error: syntax error before '*' token mtx_drv.h:513: warning: type defaults to `int' in declaration of `mtx_dev_find' mtx_drv.h:513: warning: data definition has no type or storage class mtx_drv.h:514: error: syntax error before '*' token mtx_drv.h:514: warning: function declaration isn't a prototype mtx_drv.h:515: error: syntax error before '*' token mtx_drv.h:515: warning: function declaration isn't a prototype mtx_drv.h:518: error: syntax error before '*' token mtx_drv.h:518: warning: function declaration isn't a prototype mtx_drv.h:519: error: syntax error before '*' token mtx_drv.h:519: warning: function declaration isn't a prototype mtx_drv.h:526: error: syntax error before '*' token mtx_drv.h:526: warning: function declaration isn't a prototype mtx_drv.h:527: error: syntax error before '*' token mtx_drv.h:527: warning: function declaration isn't a prototype mtx_drv.h:532: error: syntax error before '*' token mtx_drv.h:532: warning: function declaration isn't a prototype mtx_drv.h:533: error: syntax error before '*' token mtx_drv.h:533: warning: function declaration isn't a prototype mtx_drv.h:534: error: syntax error before '*' token mtx_drv.h:534: warning: function declaration isn't a prototype mtx_drv.h:535: error: syntax error before '*' token mtx_drv.h:535: warning: function declaration isn't a prototype mtx_drv.h:538: error: syntax error before '*' token mtx_drv.h:538: warning: function declaration isn't a prototype mtx_drv.h:542: error: syntax error before '*' token mtx_drv.h:542: warning: function declaration isn't a prototype mtx_drv.h:543: error: syntax error before '*' token mtx_drv.h:543: warning: function declaration isn't a prototype mtx_drv.h:544: error: syntax error before '*' token mtx_drv.h:544: warning: function declaration isn't a prototype mtx_drv.h:545: error: syntax error before '*' token mtx_drv.h:545: warning: function declaration isn't a prototype mtx_drv.h:546: error: syntax error before '*' token mtx_drv.h:546: warning: function declaration isn't a prototype mtx_drv.h:554: error: syntax error before '*' token mtx_drv.h:554: warning: function declaration isn't a prototype mtx_drv.h:555: error: syntax error before '*' token mtx_drv.h:555: warning: function declaration isn't a prototype mtx_drv.h:598: error: syntax error before '*' token mtx_drv.h:598: warning: function declaration isn't a prototype mtx_drv.h:599: error: syntax error before "unsigned" mtx_drv.h:599: warning: function declaration isn't a prototype mtx_drv.h:644: error: syntax error before "MTXHANDLE" mtx_drv.h:644: warning: no semicolon at end of struct or union mtx_drv.h:647: error: syntax error before "hcoredev" mtx_drv.h:647: warning: function declaration isn't a prototype mtx_drv.h:650: error: syntax error before '*' token mtx_drv.h:650: error: syntax error before "hcoredev" mtx_drv.h:650: warning: type defaults to `int' in declaration of `MTXHANDLE' mtx_drv.h:650: warning: function declaration isn't a prototype mtx_drv.h:650: error: `MTXHANDLE' declared as function returning a function mtx_drv.h:650: warning: function declaration isn't a prototype mtx_drv.h:650: warning: data definition has no type or storage class mtx_drv.h:653: error: syntax error before "hcoredev" mtx_drv.h:653: warning: function declaration isn't a prototype mtx_drv.h:656: error: syntax error before "hcoredev" mtx_drv.h:656: warning: function declaration isn't a prototype mtx_drv.h:661: error: syntax error before '}' token mtx_drv.h:661: warning: type defaults to `int' in declaration of `mtx_core_driver_t' mtx_drv.h:661: warning: data definition has no type or storage class mtx_drv.h:666: error: syntax error before "mtx_parhl_driver" mtx_drv.h:666: warning: type defaults to `int' in declaration of `mtx_parhl_driver' mtx_drv.h:666: warning: data definition has no type or storage class mtx_drv.c: In function `mtx_init': mtx_drv.c:281: error: request for member `init' in something not a structure or union mtx_drv.c: In function `mtx_cleanup': mtx_drv.c:307: error: request for member `cleanup' in something not a structure or union make: *** [mtx_drv.o] Error 1 [root@e14-24 kernel]#