The third argument was removed Signed-off-by: Felix Fietkau <nbd@xxxxxxxx> --- backport/backport-include/linux/usb.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 backport/backport-include/linux/usb.h diff --git a/backport/backport-include/linux/usb.h b/backport/backport-include/linux/usb.h new file mode 100644 index 000000000000..844cdcc7d55e --- /dev/null +++ b/backport/backport-include/linux/usb.h @@ -0,0 +1,14 @@ +#ifndef __BACKPORT_LINUX_USB_H +#define __BACKPORT_LINUX_USB_H +#include_next <linux/usb.h> +#include <linux/version.h> + +#if LINUX_VERSION_IS_LESS(5,19,0) +static inline u16 backport_usb_maxpacket(struct usb_device *udev, int pipe) +{ + return usb_maxpacket(udev, pipe, usb_pipeout(pipe)); +} +#define usb_maxpacket LINUX_BACKPORT(usb_maxpacket) +#endif /* <5.19 */ + +#endif -- 2.36.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in