summaryrefslogtreecommitdiff
blob: 0e203196909a2d19b57736c611ea3728fed82e6a (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
irq_handler_t has changed type in 2.6.19 due to commit
7d12e780e003f93433d49ce78cfedf4b4c52adc5 by David Howells,
for details see git diff at http://tinyurl.com/2xpdy7

As the third argument was never used by the drivers, I simply wrapped every
occurrence of it in a condition for kernel version prior to 2.6.19.
2007-01-13 Martin von Gagern <Martin.vGagern@gmx.net>

diff -ur usr.orig/src/kernel-modules/fritzcapi/fritz.classic/src/driver.c usr/src/kernel-modules/fritzcapi/fritz.classic/src/driver.c
--- usr.orig/src/kernel-modules/fritzcapi/fritz.classic/src/driver.c	2007-01-22 23:36:39.000000000 +0100
+++ usr/src/kernel-modules/fritzcapi/fritz.classic/src/driver.c	2007-01-23 00:04:30.000000000 +0100
@@ -107,7 +107,11 @@
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
 static void scheduler (unsigned long data);
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs);
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				);
 
 static DECLARE_TASKLET_DISABLED (scheduler_tasklet, scheduler, 0);
 
@@ -805,11 +809,17 @@
 
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs) {
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				) {
 	int	res	= IRQ_NONE;
 	
 	UNUSED_ARG (irq);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
 	UNUSED_ARG (regs);
+#endif
 	if (args != NULL) {
 		assert (capi_lib->cm_handle_events != NULL);
 		if (atomic_read (&scheduler_id) == smp_processor_id ()) {
diff -ur usr.orig/src/kernel-modules/fritzcapi/fritz.pci/src/driver.c usr/src/kernel-modules/fritzcapi/fritz.pci/src/driver.c
--- usr.orig/src/kernel-modules/fritzcapi/fritz.pci/src/driver.c	2007-01-22 23:36:39.000000000 +0100
+++ usr/src/kernel-modules/fritzcapi/fritz.pci/src/driver.c	2007-01-23 00:07:18.000000000 +0100
@@ -107,7 +107,11 @@
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
 static void scheduler (unsigned long data);
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs);
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				);
 
 static DECLARE_TASKLET_DISABLED (scheduler_tasklet, scheduler, 0);
 
@@ -836,11 +840,17 @@
 
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs) {
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				) {
 	int	res	= IRQ_NONE;
 	
 	UNUSED_ARG (irq);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
 	UNUSED_ARG (regs);
+#endif
 	if (args != NULL) {
 		assert (capi_lib->cm_handle_events != NULL);
 		if (atomic_read (&scheduler_id) == smp_processor_id ()) {
diff -ur usr.orig/src/kernel-modules/fritzcapi/fritz.pcmcia/src/driver.c usr/src/kernel-modules/fritzcapi/fritz.pcmcia/src/driver.c
--- usr.orig/src/kernel-modules/fritzcapi/fritz.pcmcia/src/driver.c	2007-01-22 23:36:39.000000000 +0100
+++ usr/src/kernel-modules/fritzcapi/fritz.pcmcia/src/driver.c	2007-01-23 00:07:18.000000000 +0100
@@ -107,7 +107,11 @@
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
 static void scheduler (unsigned long data);
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs);
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				);
 
 static DECLARE_TASKLET_DISABLED (scheduler_tasklet, scheduler, 0);
 
@@ -836,11 +840,17 @@
 
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs) {
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				) {
 	int	res	= IRQ_NONE;
 	
 	UNUSED_ARG (irq);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
 	UNUSED_ARG (regs);
+#endif
 	if (args != NULL) {
 		assert (capi_lib->cm_handle_events != NULL);
 		if (atomic_read (&scheduler_id) == smp_processor_id ()) {
diff -ur usr.orig/src/kernel-modules/fritzcapi/fritz.pnp/src/driver.c usr/src/kernel-modules/fritzcapi/fritz.pnp/src/driver.c
--- usr.orig/src/kernel-modules/fritzcapi/fritz.pnp/src/driver.c	2007-01-22 23:36:39.000000000 +0100
+++ usr/src/kernel-modules/fritzcapi/fritz.pnp/src/driver.c	2007-01-23 00:04:52.000000000 +0100
@@ -107,7 +107,11 @@
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
 static void scheduler (unsigned long data);
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs);
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				);
 
 static DECLARE_TASKLET_DISABLED (scheduler_tasklet, scheduler, 0);
 
@@ -805,11 +809,17 @@
 
 /*---------------------------------------------------------------------------*\
 \*---------------------------------------------------------------------------*/
-static irqreturn_t irq_handler (int irq, void * args, struct pt_regs * regs) {
+static irqreturn_t irq_handler (int irq, void * args
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
+				, struct pt_regs * regs
+#endif
+				) {
 	int	res	= IRQ_NONE;
 	
 	UNUSED_ARG (irq);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
 	UNUSED_ARG (regs);
+#endif
 	if (args != NULL) {
 		assert (capi_lib->cm_handle_events != NULL);
 		if (atomic_read (&scheduler_id) == smp_processor_id ()) {