keo[fatx]$ make cc -D__KERNEL__ -Iinclude -I/usr/src/linux-2.6.17.6/include -c -o namei.o namei.c In file included from /usr/src/linux-2.6.17.6/include/linux/rwsem.h:27, from /usr/src/linux-2.6.17.6/include/asm/semaphore.h:42, from /usr/src/linux-2.6.17.6/include/linux/sched.h:20, from /usr/src/linux-2.6.17.6/include/linux/module.h:10, from namei.c:9: /usr/src/linux-2.6.17.6/include/asm/rwsem.h: In function `__down_read': /usr/src/linux-2.6.17.6/include/asm/rwsem.h:105: error: syntax error before "KBUILD_BASENAME" /usr/src/linux-2.6.17.6/include/asm/rwsem.h: In function `__down_write': /usr/src/linux-2.6.17.6/include/asm/rwsem.h:157: error: syntax error before "KBUILD_BASENAME" /usr/src/linux-2.6.17.6/include/asm/rwsem.h: In function `__up_read': /usr/src/linux-2.6.17.6/include/asm/rwsem.h:194: error: syntax error before "KBUILD_BASENAME" /usr/src/linux-2.6.17.6/include/asm/rwsem.h: In function `__up_write': /usr/src/linux-2.6.17.6/include/asm/rwsem.h:220: error: syntax error before "KBUILD_BASENAME" /usr/src/linux-2.6.17.6/include/asm/rwsem.h: In function `__downgrade_write': /usr/src/linux-2.6.17.6/include/asm/rwsem.h:245: error: syntax error before "KBUILD_BASENAME" In file included from /usr/src/linux-2.6.17.6/include/linux/sched.h:20, from /usr/src/linux-2.6.17.6/include/linux/module.h:10, from namei.c:9: /usr/src/linux-2.6.17.6/include/asm/semaphore.h: In function `down': /usr/src/linux-2.6.17.6/include/asm/semaphore.h:105: error: syntax error before "KBUILD_BASENAME" /usr/src/linux-2.6.17.6/include/asm/semaphore.h: In function `down_interruptible': /usr/src/linux-2.6.17.6/include/asm/semaphore.h:130: error: syntax error before "KBUILD_BASENAME" /usr/src/linux-2.6.17.6/include/asm/semaphore.h: In function `down_trylock': /usr/src/linux-2.6.17.6/include/asm/semaphore.h:155: error: syntax error before "KBUILD_BASENAME" /usr/src/linux-2.6.17.6/include/asm/semaphore.h: In function `up': /usr/src/linux-2.6.17.6/include/asm/semaphore.h:179: error: syntax error before "KBUILD_BASENAME" In file included from /usr/src/linux-2.6.17.6/include/asm/smp.h:18, from /usr/src/linux-2.6.17.6/include/linux/smp.h:19, from /usr/src/linux-2.6.17.6/include/linux/sched.h:26, from /usr/src/linux-2.6.17.6/include/linux/module.h:10, from namei.c:9: /usr/src/linux-2.6.17.6/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory In file included from /usr/src/linux-2.6.17.6/include/asm/smp.h:18, from /usr/src/linux-2.6.17.6/include/linux/smp.h:19, from /usr/src/linux-2.6.17.6/include/linux/sched.h:26, from /usr/src/linux-2.6.17.6/include/linux/module.h:10, from namei.c:9: /usr/src/linux-2.6.17.6/include/asm/mpspec.h: At top level: /usr/src/linux-2.6.17.6/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/src/linux-2.6.17.6/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) In file included from /usr/src/linux-2.6.17.6/include/linux/smp.h:19, from /usr/src/linux-2.6.17.6/include/linux/sched.h:26, from /usr/src/linux-2.6.17.6/include/linux/module.h:10, from namei.c:9: /usr/src/linux-2.6.17.6/include/asm/smp.h:77:26: mach_apicdef.h: No such file or directory namei.c:12:27: linux/fatx_fs.h: No such file or directory namei.c: In function `fatx_format_name': namei.c:31: error: `FATX_MAX_NAME_LENGTH' undeclared (first use in this function) namei.c:31: error: (Each undeclared identifier is reported only once namei.c:31: error: for each function it appears in.) namei.c: At top level: namei.c:53: warning: "struct fatx_dir_entry" declared inside parameter list namei.c:53: warning: its scope is only this definition or declaration, which is probably not what you want namei.c:53: warning: "struct buffer_head" declared inside parameter list namei.c:53: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_find': namei.c:58: error: `fatx_debug' undeclared (first use in this function) namei.c: At top level: namei.c:69: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_lookup': namei.c:71: error: dereferencing pointer to incomplete type namei.c:77: error: `fatx_debug' undeclared (first use in this function) namei.c:79: error: dereferencing pointer to incomplete type namei.c:79: error: dereferencing pointer to incomplete type namei.c:80: warning: passing arg 4 of `fatx_find' from incompatible pointer typenamei.c:80: warning: passing arg 5 of `fatx_find' from incompatible pointer typenamei.c:86: warning: assignment makes pointer from integer without a cast namei.c:94: warning: return makes pointer from integer without a cast namei.c: At top level: namei.c:108: warning: "struct fatx_dir_entry" declared inside parameter list namei.c:108: warning: "struct buffer_head" declared inside parameter list namei.c:108: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_add_entry': namei.c:114: error: dereferencing pointer to incomplete type namei.c:114: error: dereferencing pointer to incomplete type namei.c:116: error: `FATX_MAX_NAME_LENGTH' undeclared (first use in this function) namei.c:116: error: dereferencing pointer to incomplete type namei.c:116: error: dereferencing pointer to incomplete type namei.c:116: error: dereferencing pointer to incomplete type namei.c:116: error: dereferencing pointer to incomplete type namei.c:117: error: dereferencing pointer to incomplete type namei.c:117: error: dereferencing pointer to incomplete type namei.c:118: error: dereferencing pointer to incomplete type namei.c:119: error: dereferencing pointer to incomplete type namei.c:119: error: `ATTR_DIR' undeclared (first use in this function) namei.c:119: error: `ATTR_ARCH' undeclared (first use in this function) namei.c:120: error: dereferencing pointer to incomplete type namei.c:121: error: dereferencing pointer to incomplete type namei.c:121: error: dereferencing pointer to incomplete type namei.c:121: error: dereferencing pointer to incomplete type namei.c:122: error: dereferencing pointer to incomplete type namei.c: At top level: namei.c:131: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_create': namei.c:137: error: dereferencing pointer to incomplete type namei.c:138: error: dereferencing pointer to incomplete type namei.c:139: error: `FATX_MAX_NAME_LENGTH' undeclared (first use in this function) namei.c:150: warning: passing arg 4 of `fatx_add_entry' from incompatible pointer type namei.c:150: warning: passing arg 5 of `fatx_add_entry' from incompatible pointer type namei.c:153: error: dereferencing pointer to incomplete type namei.c:153: warning: assignment makes pointer from integer without a cast namei.c:157: error: dereferencing pointer to incomplete type namei.c:157: error: dereferencing pointer to incomplete type namei.c:157: error: dereferencing pointer to incomplete type namei.c: At top level: namei.c:167: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_rmdir': namei.c:169: error: dereferencing pointer to incomplete type namei.c:175: error: dereferencing pointer to incomplete type namei.c:175: error: dereferencing pointer to incomplete type namei.c:176: warning: passing arg 4 of `fatx_find' from incompatible pointer type namei.c:176: warning: passing arg 5 of `fatx_find' from incompatible pointer type namei.c:187: error: dereferencing pointer to incomplete type namei.c:187: error: `DELETED_FLAG' undeclared (first use in this function) namei.c:190: error: dereferencing pointer to incomplete type namei.c:191: error: dereferencing pointer to incomplete type namei.c:191: error: dereferencing pointer to incomplete type namei.c:191: error: dereferencing pointer to incomplete type namei.c:192: error: dereferencing pointer to incomplete type namei.c: At top level: namei.c:206: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_mkdir': namei.c:212: error: dereferencing pointer to incomplete type namei.c:213: error: dereferencing pointer to incomplete type namei.c:215: error: `FATX_MAX_NAME_LENGTH' undeclared (first use in this function) namei.c:223: warning: passing arg 4 of `fatx_add_entry' from incompatible pointer type namei.c:223: warning: passing arg 5 of `fatx_add_entry' from incompatible pointer type namei.c:226: error: dereferencing pointer to incomplete type namei.c:226: warning: assignment makes pointer from integer without a cast namei.c:233: error: dereferencing pointer to incomplete type namei.c:234: error: dereferencing pointer to incomplete type namei.c:249: error: dereferencing pointer to incomplete type namei.c:250: error: dereferencing pointer to incomplete type namei.c:250: error: dereferencing pointer to incomplete type namei.c:250: error: dereferencing pointer to incomplete type namei.c:251: error: dereferencing pointer to incomplete type namei.c:254: error: dereferencing pointer to incomplete type namei.c:254: error: `DELETED_FLAG' undeclared (first use in this function) namei.c: At top level: namei.c:271: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_unlink': namei.c:273: error: dereferencing pointer to incomplete type namei.c:279: error: dereferencing pointer to incomplete type namei.c:279: error: dereferencing pointer to incomplete type namei.c:280: warning: passing arg 4 of `fatx_find' from incompatible pointer type namei.c:280: warning: passing arg 5 of `fatx_find' from incompatible pointer type namei.c:284: error: dereferencing pointer to incomplete type namei.c:284: error: `DELETED_FLAG' undeclared (first use in this function) namei.c:288: error: dereferencing pointer to incomplete type namei.c:289: error: dereferencing pointer to incomplete type namei.c:289: error: dereferencing pointer to incomplete type namei.c:289: error: dereferencing pointer to incomplete type namei.c: At top level: namei.c:300: warning: "struct fatx_dir_entry" declared inside parameter list namei.c:300: warning: "struct buffer_head" declared inside parameter list namei.c:300: warning: "struct inode" declared inside parameter list namei.c: In function `do_fatx_rename': namei.c:308: error: dereferencing pointer to incomplete type namei.c:309: error: dereferencing pointer to incomplete type namei.c:311: error: `fatx_debug' undeclared (first use in this function) namei.c:313: error: dereferencing pointer to incomplete type namei.c:314: error: dereferencing pointer to incomplete type namei.c:315: error: dereferencing pointer to incomplete type namei.c:327: error: dereferencing pointer to incomplete type namei.c:327: error: `event' undeclared (first use in this function) namei.c:333: error: dereferencing pointer to incomplete type namei.c:333: error: `DELETED_FLAG' undeclared (first use in this function) namei.c:337: error: invalid type argument of `->' namei.c:337: error: `ATTR_HIDDEN' undeclared (first use in this function) namei.c:339: error: dereferencing pointer to incomplete type namei.c:340: error: dereferencing pointer to incomplete type namei.c:340: error: dereferencing pointer to incomplete type namei.c:340: error: dereferencing pointer to incomplete type namei.c:343: error: dereferencing pointer to incomplete type namei.c:344: error: dereferencing pointer to incomplete type namei.c:344: error: dereferencing pointer to incomplete type namei.c:348: error: dereferencing pointer to incomplete type namei.c:348: error: invalid type argument of `->' namei.c:351: error: dereferencing pointer to incomplete type namei.c:354: error: dereferencing pointer to incomplete type namei.c:357: error: dereferencing pointer to incomplete type namei.c:372: error: invalid type argument of `->' namei.c:374: error: dereferencing pointer to incomplete type namei.c:375: error: dereferencing pointer to incomplete type namei.c:375: error: dereferencing pointer to incomplete type namei.c: At top level: namei.c:386: warning: "struct inode" declared inside parameter list namei.c: In function `fatx_rename': namei.c:392: error: dereferencing pointer to incomplete type namei.c:392: error: dereferencing pointer to incomplete type namei.c:395: error: dereferencing pointer to incomplete type namei.c:395: error: dereferencing pointer to incomplete type namei.c:399: error: dereferencing pointer to incomplete type namei.c:399: error: dereferencing pointer to incomplete type namei.c:404: warning: passing arg 5 of `do_fatx_rename' from incompatible pointer type namei.c:404: warning: passing arg 6 of `do_fatx_rename' from incompatible pointer type make: *** [namei.o] Error 1 keo[fatx]$