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
149
150
151
152
153
154
155
|
Fixes ripped from upstream cvs
http://bugs.gentoo.org/163740
--- linux-fusion-3.2/linux/drivers/char/fusion/call.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/call.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/entries.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/entries.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/fusiondev.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/fusiondev.c
@@ -14,7 +14,9 @@
#include <linux/version.h>
#include <linux/module.h>
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
@@ -22,6 +24,11 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18)
#include <linux/devfs_fs_kernel.h>
#endif
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 19)
+#include <linux/page-flags.h>
+#include <linux/mm.h>
+#endif
+
#include <linux/proc_fs.h>
#include <linux/poll.h>
#include <linux/init.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/fusionee.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/fusionee.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/property.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/property.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/reactor.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/reactor.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/ref.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/ref.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/shmpool.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/shmpool.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/skirmish.c
+++ linux-fusion-3.2/linux/drivers/char/fusion/skirmish.c
@@ -12,7 +12,9 @@
* 2 of the License, or (at your option) any later version.
*/
+#ifdef HAVE_LINUX_CONFIG_H
#include <linux/config.h>
+#endif
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
--- linux-fusion-3.2/linux/drivers/char/fusion/types.h
+++ linux-fusion-3.2/linux/drivers/char/fusion/types.h
@@ -15,9 +15,15 @@
#ifndef __FUSION__TYPES_H__
#define __FUSION__TYPES_H__
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)
typedef enum {
false = 0,
true = !false
} bool;
+#endif
+
+
#endif
--- linux-fusion-3.2/Makefile
+++ linux-fusion-3.2/Makefile
@@ -17,6 +17,10 @@
AUTOCONF_H = -include $(KERNEL_BUILD)/include/linux/autoconf.h
endif
+ifeq ($(shell test -e $(KERNEL_BUILD)/include/linux/config.h && echo yes),yes)
+ CPPFLAGS += -DHAVE_LINUX_CONFIG_H
+endif
+
.PHONY: all install clean
all:
|