Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fightwarn libusb 1.0+0.1 rebased part1 #1244

Conversation

jimklimov
Copy link
Member

@jimklimov jimklimov commented Dec 24, 2021

Helper "runner-up" commits for PR #1241 (rebasing that changeset over current target branch state, to minimise the noise in log and githubweb diff).

Update: Now this PR also adds explicit configure-time detection and build-time use of libusb_detach_kernel_driver_np (previously only libusb_detach_kernel_driver was handled, and libusb-0.1's usb_detach_kernel_driver_np of these.

@jimklimov jimklimov added USB CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) refactor/fightwarn PR or issue proposal to improve code maintainability without functional changes, or to fix warnings labels Dec 24, 2021
…ed value - merging missed a few in libusb-1.0+0.1 branch
… => libusb_control_transfer() and usb_interrupt_read() => libusb_interrupt_transfer() for libusb-1.0 support
…_GCC_DIAGNOSTIC_IGNORED_TYPE_LIMITS_BESIDEFUNC since not all C files call them
…iases to real mappings with range-checks for libusb-1.0 API
…ents to our macro wrapper nut_usb_strerror()
… etc., nut_usb_strerror() and similar macros
…are defined in config.h (so "#if HAVE_..." is valid and not guessed as 0)
…g uses of (lib)usb_strerror with nut_usb_strerror()
@jimklimov jimklimov force-pushed the fightwarn-libusb-1.0+0.1-rebased-part1 branch from 8254c53 to e71bc60 Compare December 24, 2021 19:57
jimklimov and others added 3 commits December 25, 2021 03:50
…omm_usb.c: honor that libusb-1.0 may HAVE_LIBUSB_DETACH_KERNEL_DRIVER_NP
…chcomm_usb.c: only apply usb_detach_kernel_driver_np to libusb-0.1 builds (no alias tricks)
@jimklimov jimklimov force-pushed the fightwarn-libusb-1.0+0.1-rebased-part1 branch from 9f555ec to abb01ed Compare December 25, 2021 14:16
@jimklimov jimklimov merged commit 2c30c70 into networkupstools:libusb-1.0+0.1 Dec 25, 2021
@jimklimov jimklimov deleted the fightwarn-libusb-1.0+0.1-rebased-part1 branch December 25, 2021 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Entries related to continuous integration infrastructure (historically also recipes like Makefiles) refactor/fightwarn PR or issue proposal to improve code maintainability without functional changes, or to fix warnings USB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant