Commit Graph

7 Commits

Author SHA1 Message Date
Adam Duskett 9233703a1e dmx_usb_module: fix 6.6 kernel compile
Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
2024-04-05 13:39:56 -07:00
Josef Schlehofer 0feea716bd dmx_usb_module: use upstream commit to fix compilation with kernel 6.2+
Recently, there was pushed patch, which fixed only part to get it working with
Linux kernel 6.2+, but it was only local change and it did not use the changes,
which are going to be included in the upcoming dmx_usb_module release.

This commit use the commit from the upstream repository:
eeecf40c3e

Fixes: e15d9f75da ("dmx_usb_module: fix compilation warning")

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2023-09-02 09:56:11 -07:00
Christian Marangi e15d9f75da
dmx_usb_module: fix compilation warning
Fix compilation warning due to wrong cast.
In file included from ./include/linux/kernel.h:19,
                 from /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/dmx_usb_module-19.12.1/dmx_usb.c:16:
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/dmx_usb_module-19.12.1/dmx_usb.c: In function 'dmx_usb_write':
./include/linux/kern_levels.h:5:25: error: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
    5 | #define KERN_SOH        "\001"          /* ASCII Start Of Header */
      |                         ^~~~~~
./include/linux/printk.h:422:25: note: in definition of macro 'printk_index_wrap'
  422 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/dmx_usb_module-19.12.1/dmx_usb.c:41:45: note: in expansion of macro 'printk'
   41 | #define dbg(format, arg...) do { if (debug) printk(KERN_DEBUG __FILE__ ": " format "\n" , ## arg); } while (0)
      |                                             ^~~~~~
./include/linux/kern_levels.h:15:25: note: in expansion of macro 'KERN_SOH'
   15 | #define KERN_DEBUG      KERN_SOH "7"    /* debug-level messages */
      |                         ^~~~~~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/dmx_usb_module-19.12.1/dmx_usb.c:41:52: note: in expansion of macro 'KERN_DEBUG'
   41 | #define dbg(format, arg...) do { if (debug) printk(KERN_DEBUG __FILE__ ": " format "\n" , ## arg); } while (0)
      |                                                    ^~~~~~~~~~
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-ipq807x_generic/dmx_usb_module-19.12.1/dmx_usb.c:409:9: note: in expansion of macro 'dbg'
  409 |         dbg("%s - minor %d, count = %d", __FUNCTION__, dev->minor, count);
      |         ^~~
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-14 16:51:48 +02:00
Rosen Penev d97056efe5
dmx_usb_module: update to 19.12.1
Cleaned up Makefile for consistency between packages.

Remove outdated patch.

Refreshed other one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-11-24 22:29:35 -08:00
Matthias Schiffer 50cd1f13a1
dmx_usb_module: fix build against kernel 4.14
The change should also work fine with older kernels, as <linux/uaccess.h>
has existed for a long time, and it includes <asm/uaccess.h>.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-03-02 00:58:15 +01:00
Matthias Schiffer dee7a82730
dmx_usb_module: change source URL to HTTPS
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-03-02 00:58:11 +01:00
Martijn Zilverschoon 1f9485a894 dmx_usb_module: new package added
dmx_usb_module is a kernel module that is needed to controll FTDI485 based DMX modules.

Signed-off-by: Martijn Zilverschoon <martijn@friedzombie.com>
2014-11-30 18:10:15 +01:00