Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 823709 Details for
Bug 876328
dev-util/android-tools-33.0.3-r1: fails to build with sys-kernel/linux-headers-6.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adb patch
android_tools.patch (text/plain), 3.05 KB, created by
Dmitry Suloev
on 2022-10-12 14:10:00 UTC
(
hide
)
Description:
adb patch
Filename:
MIME Type:
Creator:
Dmitry Suloev
Created:
2022-10-12 14:10:00 UTC
Size:
3.05 KB
patch
obsolete
>diff --git a/vendor/adb/client/usb_linux.cpp b/vendor/adb/client/usb_linux.cpp >index 25a50bd1..fa0bbf36 100644 >--- a/vendor/adb/client/usb_linux.cpp >+++ b/vendor/adb/client/usb_linux.cpp >@@ -72,8 +72,8 @@ struct usb_handle { > unsigned zero_mask; > unsigned writeable = 1; > >- usbdevfs_urb urb_in; >- usbdevfs_urb urb_out; >+ usbdevfs_urb *urb_in; >+ usbdevfs_urb *urb_out; > > bool urb_in_busy = false; > bool urb_out_busy = false; >@@ -304,7 +304,7 @@ static int usb_bulk_write(usb_handle* h, const void* data, int len) { > std::unique_lock<std::mutex> lock(h->mutex); > D("++ usb_bulk_write ++"); > >- usbdevfs_urb* urb = &h->urb_out; >+ usbdevfs_urb* urb = h->urb_out; > memset(urb, 0, sizeof(*urb)); > urb->type = USBDEVFS_URB_TYPE_BULK; > urb->endpoint = h->ep_out; >@@ -343,7 +343,7 @@ static int usb_bulk_read(usb_handle* h, void* data, int len) { > std::unique_lock<std::mutex> lock(h->mutex); > D("++ usb_bulk_read ++"); > >- usbdevfs_urb* urb = &h->urb_in; >+ usbdevfs_urb* urb = h->urb_in; > memset(urb, 0, sizeof(*urb)); > urb->type = USBDEVFS_URB_TYPE_BULK; > urb->endpoint = h->ep_in; >@@ -388,7 +388,7 @@ static int usb_bulk_read(usb_handle* h, void* data, int len) { > } > D("[ urb @%p status = %d, actual = %d ]", out, out->status, out->actual_length); > >- if (out == &h->urb_in) { >+ if (out == h->urb_in) { > D("[ reap urb - IN complete ]"); > h->urb_in_busy = false; > if (urb->status != 0) { >@@ -397,7 +397,7 @@ static int usb_bulk_read(usb_handle* h, void* data, int len) { > } > return urb->actual_length; > } >- if (out == &h->urb_out) { >+ if (out == h->urb_out) { > D("[ reap urb - OUT compelete ]"); > h->urb_out_busy = false; > h->cv.notify_all(); >@@ -501,10 +501,10 @@ void usb_kick(usb_handle* h) { > ** but this ensures that a reader blocked on REAPURB > ** will get unblocked > */ >- ioctl(h->fd, USBDEVFS_DISCARDURB, &h->urb_in); >- ioctl(h->fd, USBDEVFS_DISCARDURB, &h->urb_out); >- h->urb_in.status = -ENODEV; >- h->urb_out.status = -ENODEV; >+ ioctl(h->fd, USBDEVFS_DISCARDURB, h->urb_in); >+ ioctl(h->fd, USBDEVFS_DISCARDURB, h->urb_out); >+ h->urb_in->status = -ENODEV; >+ h->urb_out->status = -ENODEV; > h->urb_in_busy = false; > h->urb_out_busy = false; > h->cv.notify_all(); >@@ -520,6 +520,8 @@ int usb_close(usb_handle* h) { > > D("-- usb close %p (fd = %d) --", h, h->fd); > >+ delete h->urb_in; >+ delete h->urb_out; > delete h; > > return 0; >@@ -573,6 +575,8 @@ static void register_device(const char* dev_name, const char* dev_path, unsigned > usb->ep_out = ep_out; > usb->zero_mask = zero_mask; > usb->max_packet_size = max_packet_size; >+ usb->urb_in = new usbdevfs_urb; >+ usb->urb_out = new usbdevfs_urb; > > // Initialize mark so we don't get garbage collected after the device scan. > usb->mark = true;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 876328
: 823709