Patchwork Fix build with stub USB backend

login
register
mail settings
Submitter Nathan Whitehorn
Date March 3, 2012, 4:38 p.m.
Message ID <4F5248EA.9000601@freebsd.org>
Download mbox | patch
Permalink /patch/144449/
State New
Headers show

Comments

Nathan Whitehorn - March 3, 2012, 4:38 p.m.
Recent changes to the signature of usb_host_device_open() have broken 
the stub USB backend. This updates the stub version of 
usb_host_device_open() to correspond to the new API.

Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>
---
  usb-stub.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

--
1.7.9
Andreas Färber - March 3, 2012, 6:03 p.m.
Am 03.03.2012 17:38, schrieb Nathan Whitehorn:
> Recent changes to the signature of usb_host_device_open() have broken
> the stub USB backend. This updates the stub version of
> usb_host_device_open() to correspond to the new API.
> 
> Signed-off-by: Nathan Whitehorn <nwhitehorn@freebsd.org>

Looks like a duplicate, a similar patch was just applied.

Andreas

> ---
>  usb-stub.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/usb-stub.c b/usb-stub.c
> index 9c3fcea..b4e10c1 100644
> --- a/usb-stub.c
> +++ b/usb-stub.c
> @@ -41,7 +41,7 @@ void usb_host_info(Monitor *mon)
>  }
> 
>  /* XXX: modify configure to compile the right host driver */
> -USBDevice *usb_host_device_open(const char *devname)
> +USBDevice *usb_host_device_open(USBBus *bus, const char *devname)
>  {
>      return NULL;
>  }
> -- 
> 1.7.9

Patch

diff --git a/usb-stub.c b/usb-stub.c
index 9c3fcea..b4e10c1 100644
--- a/usb-stub.c
+++ b/usb-stub.c
@@ -41,7 +41,7 @@  void usb_host_info(Monitor *mon)
  }

  /* XXX: modify configure to compile the right host driver */
-USBDevice *usb_host_device_open(const char *devname)
+USBDevice *usb_host_device_open(USBBus *bus, const char *devname)
  {
      return NULL;
  }