linux-next: manual merge of the staging tree with the tree
Subsystems (2)
Mark Brown
maintainerHi Greg,
Today's linux-next merge of the staging tree got a conflict in between commit f080a51bef2ca ("USB: complain if userspace resets an active endpoint") from the usb tree and commit 9b6f0c4b98171f2a3 ("usbcore: rename struct dev_state to struct usb_dev_state") from the staging tree.
I fixed it up (see below) and can carry the fix as necessary (no action is required).
drivers/usb/core/devio.c +0 -0
@@@ -1125,21 -1043,7 +1125,21 @@@ static int proc_bulk(struct usb_dev_stareturn ret; } +static void check_reset_of_active_ep(struct usb_device *udev, + unsigned int epnum, char *ioctl_name) +{ + struct usb_host_endpoint **eps; + struct usb_host_endpoint *ep; + + eps = (epnum &USB_DIR_IN ) ? udev->ep_in : udev->ep_out; + ep = eps[epnum &0x0f ]; + if (ep && !list_empty(&ep->urb_list)) +dev_warn (&udev->dev,"Process %d (%s) called USBDEVFS_%s for active endpoint 0x%02x\n" , +task_pid_nr (current), current->comm, + ioctl_name, epnum); +} + - static int proc_resetep(struct dev_state *ps, void __user *arg) + static int proc_resetep(struct usb_dev_state *ps, void __user *arg) {unsigned int ep;int ret;