When compiling the kernel with usb drivers (for mouse, keyboard), gcc fails at inode.c Reproducible: Always Steps to Reproduce: 1. make dep && make bzImage modules modules_install 2. 3. Actual Results: Compile crashed with following message: inode.c:681: redefinition of `usbdevfs_add_bus' /usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1119: `usbdevfs_add_bus' previously defined here inode.c:693: redefinition of `usbdevfs_remove_bus' /usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1120: `usbdevfs_remove_bus' previously defined here inode.c:703: redefinition of `usbdevfs_add_device' /usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1121: `usbdevfs_add_device' previously defined here inode.c:715: redefinition of `usbdevfs_remove_device' /usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1122: `usbdevfs_remove_device' previously defined here inode.c:750: redefinition of `usbdevfs_init' /usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1124: `usbdevfs_init' previously defined here inode.c:775: redefinition of `usbdevfs_cleanup' /usr/src/linux-2.4.22-gentoo-r5/include/linux/usb.h:1125: `usbdevfs_cleanup' previously defined here make[3]: *** [inode.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/usb' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers/usb' make[1]: *** [_subdir_usb] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.22-gentoo-r5/drivers' make: *** [_dir_drivers] Error 2 Expected Results: Compiled correctly
Created attachment 24715 [details] .config file used
enable Preliminary USB device filesystem under the usb menu
Can you please backup your .config, run "make mrproper", stick your .config back in, run "make oldconfig && make dep bzImage"?
Did any of the previous suggestions fix this?
Closing. Newer kernels have fixed this.