Compilation errors on some usb files
PATCH 1/1 Compilation errors on some usb files
Sorry if this has been posted or fixed already but here it goes. This is the two patche that fixes some compilation errors on linux/drivers/usb
This fixes the compilation error on inode.c
home/bongani/dev/c/kernel/inode.c renamed from drivers/usb/inode.c +5 -2
@@ -667,7 +667,7 @@ inode->i_atime = inode->i_mtime = inode->i_ctime =CURRENT_TIME ; } } - +#ifdef CONFIG_USB_DEVICEFS void usbdevfs_add_bus (struct usb_bus *bus) {
@@ -731,13 +731,15 @@unlock_kernel ();usbdevfs_conn_disc_event (); } - +#endif /* --------------------------------------------------------------------- */ #ifdef CONFIG_PROC_FS static struct proc_dir_entry *usbdir =NULL ;#endif +#ifdef CONFIG_USB_DEVICEFS +int __init usbdevfs_init (void ) {int ret;
@@ -767,6 +769,7 @@remove_proc_entry ("usb" , proc_bus); #endif } +#endif #if 0 module_init (usbdevfs_init);