diff --git a/libs/dmx_usb_module/Makefile b/libs/dmx_usb_module/Makefile index 971648cf..309c6fe1 100644 --- a/libs/dmx_usb_module/Makefile +++ b/libs/dmx_usb_module/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=dmx_usb_module PKG_VERSION:=19.12.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/lowlander/dmx_usb_module/tar.gz/V$(PKG_VERSION)? diff --git a/libs/dmx_usb_module/patches/100-fix-compilation-warning-wrong-cast.patch b/libs/dmx_usb_module/patches/100-fix-compilation-warning-wrong-cast.patch new file mode 100644 index 00000000..9d9767d1 --- /dev/null +++ b/libs/dmx_usb_module/patches/100-fix-compilation-warning-wrong-cast.patch @@ -0,0 +1,37 @@ +From eeecf40c3eb3dbdf1981c508080ab3aa61e105e2 Mon Sep 17 00:00:00 2001 +From: Erwin Rol +Date: Fri, 13 Jan 2023 17:57:36 +0100 +Subject: [PATCH] Fix format warnings +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fix the following warning + +warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} + +Signed-off-by: Erwin Rol +--- + dmx_usb.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/dmx_usb.c ++++ b/dmx_usb.c +@@ -406,7 +406,7 @@ static ssize_t dmx_usb_write (struct fil + + dev = (struct dmx_usb_device *)file->private_data; + +- dbg("%s - minor %d, count = %d", __FUNCTION__, dev->minor, count); ++ dbg("%s - minor %d, count = %zu", __FUNCTION__, dev->minor, count); + + /* lock this object */ + down (&dev->sem); +@@ -500,7 +500,7 @@ static long dmx_usb_ioctl (struct file * + return -ENODEV; + } + +- dbg("%s - minor %d, cmd 0x%.4x, arg %ld", __FUNCTION__, ++ dbg("%s - minor %d, cmd 0x%.4x, arg %lu", __FUNCTION__, + dev->minor, cmd, arg); + + /* fill in your device specific stuff here */ diff --git a/libs/dmx_usb_module/patches/101-fix-kernel-6.6-builds.patch b/libs/dmx_usb_module/patches/101-fix-kernel-6.6-builds.patch new file mode 100644 index 00000000..d0cd7bdb --- /dev/null +++ b/libs/dmx_usb_module/patches/101-fix-kernel-6.6-builds.patch @@ -0,0 +1,14 @@ +--- a/dmx_usb.c ++++ b/dmx_usb.c +@@ -97,7 +97,11 @@ struct dmx_usb_device { + + + /* prevent races between open() and disconnect() */ ++#if(LINUX_VERSION_CODE < KERNEL_VERSION(6,5,3)) + static DEFINE_SEMAPHORE(disconnect_sem); ++#else ++ static DEFINE_SEMAPHORE(disconnect_sem, 1); ++#endif + + /* local function prototypes */ + static ssize_t dmx_usb_write (struct file *file, const char *buffer, size_t count, loff_t *ppos);