Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249389
b: refs/heads/master
c: 6a29840
h: refs/heads/master
i:
  249387: 4327e0d
v: v3
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed May 6, 2011
1 parent 17408e5 commit f9a18fe
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 81 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49aecefcdef5a26a7fb036d4c57573f0e0e2089b
refs/heads/master: 6a298401fcdefdbff734b137c1b67df9d5849103
3 changes: 0 additions & 3 deletions trunk/drivers/staging/usbip/stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ struct bus_id_priv {

extern struct kmem_cache *stub_priv_cache;

/*-------------------------------------------------------------------------*/
/* prototype declarations */

/* stub_tx.c */
void stub_complete(struct urb *);
int stub_tx_loop(void *data);
Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/staging/usbip/stub_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ struct usb_driver stub_driver = {
.id_table = stub_table,
};

/*-------------------------------------------------------------------------*/

/* Define sysfs entries for a usbip-bound device */


/*
* usbip_status shows status of usbip as long as this driver is bound to the
* target device.
Expand Down Expand Up @@ -190,10 +185,6 @@ static void stub_remove_files(struct device *dev)
device_remove_file(dev, &dev_attr_usbip_debug);
}

/*-------------------------------------------------------------------------*/

/* Event handler functions called by an event handler thread */

static void stub_shutdown_connection(struct usbip_device *ud)
{
struct stub_device *sdev = container_of(ud, struct stub_device, ud);
Expand Down Expand Up @@ -292,8 +283,6 @@ static void stub_device_unusable(struct usbip_device *ud)
spin_unlock(&ud->lock);
}

/*-------------------------------------------------------------------------*/

/**
* stub_device_alloc - allocate a new stub_device struct
* @interface: usb_interface of a new device
Expand Down Expand Up @@ -362,8 +351,6 @@ static int stub_device_free(struct stub_device *sdev)
return 0;
}

/*-------------------------------------------------------------------------*/

/*
* If a usb device has multiple active interfaces, this driver is bound to all
* the active interfaces. However, usbip exports *a* usb device (i.e., not *an*
Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/staging/usbip/stub_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
/* stub_priv is allocated from stub_priv_cache */
struct kmem_cache *stub_priv_cache;

/*-------------------------------------------------------------------------*/

/* Define sysfs entries for the usbip driver */

/*
* busid_tables defines matching busids that usbip can grab. A user can change
* dynamically what device is locally used and what device is exported to a
Expand Down Expand Up @@ -200,10 +196,6 @@ static ssize_t store_match_busid(struct device_driver *dev, const char *buf,
static DRIVER_ATTR(match_busid, S_IRUSR|S_IWUSR, show_match_busid,
store_match_busid);

/*-------------------------------------------------------------------------*/

/* Cleanup functions used to free private data */

static struct stub_priv *stub_priv_pop_from_listhead(struct list_head *listhead)
{
struct stub_priv *priv, *tmp;
Expand Down Expand Up @@ -266,8 +258,6 @@ void stub_device_cleanup_urbs(struct stub_device *sdev)
}
}

/*-------------------------------------------------------------------------*/

static int __init usb_stub_init(void)
{
int ret;
Expand Down
11 changes: 0 additions & 11 deletions trunk/drivers/staging/usbip/stub_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ void stub_complete(struct urb *urb)
wake_up(&sdev->tx_waitq);
}

/*-------------------------------------------------------------------------*/
/* fill PDU */

static inline void setup_base_pdu(struct usbip_header_basic *base,
__u32 command, __u32 seqnum)
{
Expand All @@ -137,9 +134,6 @@ static void setup_ret_unlink_pdu(struct usbip_header *rpdu,
rpdu->u.ret_unlink.status = unlink->status;
}

/*-------------------------------------------------------------------------*/
/* send RET_SUBMIT */

static struct stub_priv *dequeue_from_priv_tx(struct stub_device *sdev)
{
unsigned long flags;
Expand Down Expand Up @@ -292,9 +286,6 @@ static int stub_send_ret_submit(struct stub_device *sdev)
return total_size;
}

/*-------------------------------------------------------------------------*/
/* send RET_UNLINK */

static struct stub_unlink *dequeue_from_unlink_tx(struct stub_device *sdev)
{
unsigned long flags;
Expand Down Expand Up @@ -369,8 +360,6 @@ static int stub_send_ret_unlink(struct stub_device *sdev)
return total_size;
}

/*-------------------------------------------------------------------------*/

int stub_tx_loop(void *data)
{
struct usbip_device *ud = data;
Expand Down
11 changes: 0 additions & 11 deletions trunk/drivers/staging/usbip/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
"Takahiro Hirofuchi <hirofuchi _at_ users.sourceforge.net>"
#define DRIVER_DESC "usbip common driver"

/*-------------------------------------------------------------------------*/
/* debug routines */

#ifdef CONFIG_USB_IP_DEBUG_ENABLE
unsigned long usbip_debug_flag = 0xffffffff;
#else
Expand Down Expand Up @@ -352,9 +349,6 @@ void usbip_dump_header(struct usbip_header *pdu)
}
EXPORT_SYMBOL_GPL(usbip_dump_header);

/*-------------------------------------------------------------------------*/
/* socket routines */

/* Send/receive messages over TCP/IP. I refer drivers/block/nbd.c */
int usbip_xmit(int send, struct socket *sock, char *buf,
int size, int msg_flags)
Expand Down Expand Up @@ -469,9 +463,6 @@ struct socket *sockfd_to_socket(unsigned int sockfd)
}
EXPORT_SYMBOL_GPL(sockfd_to_socket);

/*-------------------------------------------------------------------------*/
/* pdu routines */

/* there may be more cases to tweak the flags. */
static unsigned int tweak_transfer_flags(unsigned int flags)
{
Expand Down Expand Up @@ -869,8 +860,6 @@ int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb)
}
EXPORT_SYMBOL_GPL(usbip_recv_xbuff);

/*-------------------------------------------------------------------------*/

static int __init usbip_common_init(void)
{
printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_DESC "" DRIVER_VERSION);
Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/staging/usbip/usbip_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
#include <asm/byteorder.h>
#include <net/sock.h>

/*-------------------------------------------------------------------------*/

/*
* define macros to print messages
*/

/**
* usbip_udbg - print debug messages if CONFIG_USB_IP_DEBUG_ENABLE is defined
* @fmt:
Expand Down Expand Up @@ -137,8 +131,6 @@ extern struct device_attribute dev_attr_usbip_debug;
printk(KERN_INFO "usbip: " fmt , ## args); \
} while (0)

/*-------------------------------------------------------------------------*/

/*
* USB/IP request headers.
* Currently, we define 4 request types:
Expand Down Expand Up @@ -257,8 +249,6 @@ struct usbip_header {
} u;
} __packed;

/*-------------------------------------------------------------------------*/

int usbip_xmit(int, struct socket *, char *, int, int);
int usbip_sendmsg(struct socket *, struct msghdr *, int);

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/usbip/vhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ struct vhci_hcd {
extern struct vhci_hcd *the_controller;
extern struct attribute_group dev_attr_group;

/*-------------------------------------------------------------------------*/
/* prototype declaration */

/* vhci_hcd.c */
void rh_port_connect(int rhport, enum usb_device_speed speed);
void rh_port_disconnect(int rhport);
Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/staging/usbip/vhci_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ void rh_port_disconnect(int rhport)
usb_hcd_poll_rh_status(vhci_to_hcd(the_controller));
}

/*----------------------------------------------------------------------*/

#define PORT_C_MASK \
((USB_PORT_STAT_C_CONNECTION \
| USB_PORT_STAT_C_ENABLE \
Expand Down Expand Up @@ -478,10 +476,6 @@ static int vhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
return retval;
}



/*----------------------------------------------------------------------*/

static struct vhci_device *get_vdev(struct usb_device *udev)
{
int i;
Expand Down Expand Up @@ -951,9 +945,6 @@ static void vhci_device_init(struct vhci_device *vdev)
usbip_start_eh(&vdev->ud);
}


/*----------------------------------------------------------------------*/

static int vhci_start(struct usb_hcd *hcd)
{
struct vhci_hcd *vhci = hcd_to_vhci(hcd);
Expand Down Expand Up @@ -1008,8 +999,6 @@ static void vhci_stop(struct usb_hcd *hcd)
usbip_uinfo("vhci_stop done\n");
}

/*----------------------------------------------------------------------*/

static int vhci_get_frame_number(struct usb_hcd *hcd)
{
usbip_uerr("Not yet implemented\n");
Expand Down Expand Up @@ -1215,8 +1204,6 @@ static struct platform_driver vhci_driver = {
},
};

/*----------------------------------------------------------------------*/

/*
* The VHCI 'device' is 'virtual'; not a real plug&play hardware.
* We need to add this virtual device as a platform device arbitrarily:
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/usbip/vhci_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,6 @@ static void vhci_rx_pdu(struct usbip_device *ud)
}
}

/*-------------------------------------------------------------------------*/

int vhci_rx_loop(void *data)
{
struct usbip_device *ud = data;
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/staging/usbip/vhci_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ static int vhci_send_cmd_submit(struct vhci_device *vdev)
return total_size;
}

/*-------------------------------------------------------------------------*/

static struct vhci_unlink *dequeue_from_unlink_tx(struct vhci_device *vdev)
{
unsigned long flags;
Expand Down Expand Up @@ -204,8 +202,6 @@ static int vhci_send_cmd_unlink(struct vhci_device *vdev)
return total_size;
}

/*-------------------------------------------------------------------------*/

int vhci_tx_loop(void *data)
{
struct usbip_device *ud = data;
Expand Down

0 comments on commit f9a18fe

Please sign in to comment.