summarylogtreecommitdiffstats
path: root/64bit_support.patch
blob: fb3928dd08fbe92157a48bd4916b0085bce390fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
 };