summarylogtreecommitdiffstats
path: root/64bit_support.patch
diff options
context:
space:
mode:
Diffstat (limited to '64bit_support.patch')
-rw-r--r--64bit_support.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/64bit_support.patch b/64bit_support.patch
new file mode 100644
index 000000000000..fb3928dd08fb
--- /dev/null
+++ b/64bit_support.patch
@@ -0,0 +1,41 @@
+From 3e3c08ec6bf074484ab424c8eac103eba064a538 Mon Sep 17 00:00:00 2001
+From: Alexander Reinert <alex@areinert.de>
+Date: Tue, 30 Jan 2018 13:35:38 +0100
+Subject: [PATCH] Added support for 64 bit kernels
+
+---
+ KernelDrivers/eq3_char_loop.c | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/KernelDrivers/eq3_char_loop.c b/KernelDrivers/eq3_char_loop.c
+index de2d637d..c3a9e66e 100644
+--- a/KernelDrivers/eq3_char_loop.c
++++ b/KernelDrivers/eq3_char_loop.c
+@@ -48,8 +48,8 @@
+ /* Use 'L' as magic number */
+ #define EQ3LOOP_IOC_MAGIC 'L'
+
+-#define EQ3LOOP_IOCSCREATESLAVE _IOW(EQ3LOOP_IOC_MAGIC, 1, unsigned long)
+-#define EQ3LOOP_IOCGEVENTS _IOR(EQ3LOOP_IOC_MAGIC, 2, unsigned long)
++#define EQ3LOOP_IOCSCREATESLAVE _IOW(EQ3LOOP_IOC_MAGIC, 1, uint32_t)
++#define EQ3LOOP_IOCGEVENTS _IOR(EQ3LOOP_IOC_MAGIC, 2, uint32_t)
+
+ #define EVENT_BIT_SLAVE_OPENED 0
+ #define EVENT_BIT_SLAVE_CLOSED 1
+@@ -353,7 +353,7 @@ static ssize_t eq3loop_write_master(struct eq3loop_channel_data* channel, struct
+ {
+ ret=-EFAULT;
+ count_to_end = CIRC_SPACE( head, channel->master2slave_buf.tail, BUFSIZE);
+- printk( KERN_ERR EQ3LOOP_DRIVER_NAME ": eq3loop_write_master() %s: not enought space in the buffers. free space = %i, required space = %i", channel->name,count_to_end,count );
++ printk( KERN_ERR EQ3LOOP_DRIVER_NAME ": eq3loop_write_master() %s: not enought space in the buffers. free space = %zu, required space = %zu", channel->name,count_to_end,count );
+ goto out;
+ }
+ /* ok, space is free, write something */
+@@ -908,6 +908,7 @@ static struct file_operations eq3loop_fops = {
+ .ioctl = eq3loop_ioctl,
+ #else
+ .unlocked_ioctl = eq3loop_ioctl,
++ .compat_ioctl = eq3loop_ioctl,
+ #endif
+ };
+