I want to recompile a os, but there is a problem.

After downloading the kernel(.git clone git://github.com/beagleboard/kernel.git), after config ,I entered the following cmd to MAKE.

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mrproper (ok)
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- beaglebone_defconfig (ok)
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules (ok)
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage (err)

The last command has errors:

CC drivers/misc/cape/beaglebone/capemgr.o
drivers/misc/cape/beaglebone/capemgr.c:1526:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘bone_capemgr_probe’
drivers/misc/cape/beaglebone/capemgr.c:1751:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘bone_capemgr_remove’
drivers/misc/cape/beaglebone/capemgr.c:1820:12: error: ‘bone_capemgr_probe’ undeclared here (not in a function)
drivers/misc/cape/beaglebone/capemgr.c:1821:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
drivers/misc/cape/beaglebone/capemgr.c:1821:25: error: ‘bone_capemgr_remove’ undeclared here (not in a function)
drivers/misc/cape/beaglebone/capemgr.c:393:12: warning: ‘bone_baseboard_scan’ defined but not used [-Wunused-function]
drivers/misc/cape/beaglebone/capemgr.c:549:12: warning: ‘bone_is_compatible_override’ defined but not used [-Wunused-function]
drivers/misc/cape/beaglebone/capemgr.c:842:13: warning: ‘bone_cape_slot_sysfs_unregister’ defined but not used [-Wunused-function]
drivers/misc/cape/beaglebone/capemgr.c:1079:12: warning: ‘bone_capemgr_info_sysfs_register’ defined but not used [-Wunused-function]
drivers/misc/cape/beaglebone/capemgr.c:1099:13: warning: ‘bone_capemgr_info_sysfs_unregister’ defined but not used [-Wunused-function]
drivers/misc/cape/beaglebone/capemgr.c:1518:12: warning: ‘bone_capemgr_loader’ defined but notused [-Wunused-function]
cc1: some warnings being treated as errors
make[4]: *** [drivers/misc/cape/beaglebone/capemgr.o] Error 1
make[3]: *** [drivers/misc/cape/beaglebone] Error 2
make[2]: *** [drivers/misc/cape] Error 2
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2

in the file "drivers/misc/cape "

1525 static int __devinit
1526 bone_capemgr_probe(struct platform_device *pdev)
1527 ±-223 lines: {------------------------------------------------------------------------------------------------------------------------
1750
1751 static int __devexit bone_capemgr_remove(struct platform_device *pdev)
1752 ±- 36 lines: {------------------------------------------------------------------------------------------------------------------------

Anybody know how to solve it? Thanks very much.

remove __devinit, __devexit, __devexit_p, and bone_capemgr_remove and then recompile.