svn commit: r208007 - head/sys/dev/usb

Andrew Thompson thompsa at FreeBSD.org
Wed May 12 22:28:40 UTC 2010


Author: thompsa
Date: Wed May 12 22:28:40 2010
New Revision: 208007
URL: http://svn.freebsd.org/changeset/base/208007

Log:
  Staticise usb_ref_device and usb_unref_device.
  
  Submitted by:	Hans Petter Selasky

Modified:
  head/sys/dev/usb/usb_dev.c

Modified: head/sys/dev/usb/usb_dev.c
==============================================================================
--- head/sys/dev/usb/usb_dev.c	Wed May 12 22:26:23 2010	(r208006)
+++ head/sys/dev/usb/usb_dev.c	Wed May 12 22:28:40 2010	(r208007)
@@ -182,7 +182,7 @@ usb_loc_fill(struct usb_fs_privdata* pd,
  *  0: Success, refcount incremented on the given USB device.
  *  Else: Failure.
  *------------------------------------------------------------------------*/
-usb_error_t
+static usb_error_t
 usb_ref_device(struct usb_cdev_privdata *cpd, 
     struct usb_cdev_refdata *crd, int need_uref)
 {
@@ -327,7 +327,7 @@ usb_usb_ref_device(struct usb_cdev_privd
  * This function will release the reference count by one unit for the
  * given USB device.
  *------------------------------------------------------------------------*/
-void
+static void
 usb_unref_device(struct usb_cdev_privdata *cpd,
     struct usb_cdev_refdata *crd)
 {


More information about the svn-src-all mailing list