public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bongani Hlope <bonganilinux@mweb.co.za>
To: LKM <linux-kernel@vger.kernel.org>
Subject: [Patch] Compilation errors on some usb file
Date: 11 Dec 2001 21:54:02 +0200	[thread overview]
Message-ID: <1008100443.3236.0.camel@localhost.localdomain> (raw)

[-- Attachment #1: Type: text/plain, Size: 121 bytes --]

Sorry about the first two patches they both apply on top
of 2.4.17-pre7. I have attached both of them again I case ...



[-- Attachment #2: usb_hiddev.diff --]
[-- Type: text/x-diff, Size: 1054 bytes --]

--- linux/drivers/usb/hiddev.c	Tue Nov 13 09:23:58 2001
+++ /home/bongani/dev/c/kernel/hiddev.c	Tue Dec 11 21:33:06 2001
@@ -193,7 +193,6 @@
 	struct hiddev_list *list = file->private_data;
 	struct hiddev_list **listptr;
 
-	lock_kernel();
 	listptr = &list->hiddev->list;
 	hiddev_fasync(-1, file, 0);
 
@@ -209,7 +208,6 @@
 	}
 
 	kfree(list);
-	unlock_kernel();
 
 	return 0;
 }
@@ -567,6 +565,7 @@
 	fasync:		hiddev_fasync,
 };
 
+#ifdef CONFIG_USB_HIDDEV
 /*
  * This is where hid.c calls us to connect a hid device to the hiddev driver
  */
@@ -630,6 +629,7 @@
 		hiddev_cleanup(hiddev);
 	}
 }
+#endif
 
 /* Currently this driver is a USB driver.  It's not a conventional one in
  * the sense that it doesn't probe at the USB level.  Instead it waits to
@@ -662,6 +662,7 @@
 	minor:	HIDDEV_MINOR_BASE
 };
 
+#ifdef CONFIG_USB_HIDDEV
 int __init hiddev_init(void)
 {
 	hiddev_devfs_handle =
@@ -675,3 +676,5 @@
 	devfs_unregister(hiddev_devfs_handle);
 	usb_deregister(&hiddev_driver);
 }
+#endif
+

[-- Attachment #3: usb_inode.diff --]
[-- Type: text/x-diff, Size: 781 bytes --]

--- linux/drivers/usb/inode.c	Sun Oct 21 04:13:11 2001
+++ /home/bongani/dev/c/kernel/inode.c	Tue Dec 11 21:23:46 2001
@@ -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);

             reply	other threads:[~2001-12-11 19:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-11 19:54 Bongani Hlope [this message]
2001-12-11 20:19 ` [Patch] Compilation errors on some usb file Greg KH
2001-12-11 21:24   ` Bongani Hlope
2001-12-12  4:31   ` Bongani Hlope

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1008100443.3236.0.camel@localhost.localdomain \
    --to=bonganilinux@mweb.co.za \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox