--- a/fs/yaffs2/yaffs_vfs.c +++ b/fs/yaffs2/yaffs_vfs.c @@ -3025,6 +3025,7 @@ static DECLARE_FSTYPE(yaffs2_fs_type, "y #endif +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)) static struct proc_dir_entry *my_proc_entry; static char *yaffs_dump_dev_part0(char *buf, struct yaffs_dev *dev) @@ -3398,6 +3399,7 @@ static int yaffs_proc_write(struct file return yaffs_proc_debug_write(file, buf, count, data); return yaffs_proc_write_trace_options(file, buf, count, data); } +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)) */ /* Stuff to handle installation of file systems */ struct file_system_to_install { @@ -3421,6 +3423,7 @@ static int __init init_yaffs_fs(void) mutex_init(&yaffs_context_lock); +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)) /* Install the proc_fs entries */ my_proc_entry = create_proc_entry("yaffs", S_IRUGO | S_IFREG, YPROC_ROOT); @@ -3432,6 +3435,7 @@ static int __init init_yaffs_fs(void) } else { return -ENOMEM; } +#endif /* Now add the file system entries */ @@ -3468,7 +3472,9 @@ static void __exit exit_yaffs_fs(void) yaffs_trace(YAFFS_TRACE_ALWAYS, "yaffs built " __DATE__ " " __TIME__ " removing."); +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0)) remove_proc_entry("yaffs", YPROC_ROOT); +#endif fsinst = fs_to_install; tabs'> aboutsummaryrefslogtreecommitdiffstats
path: root/.hgignore
blob: b27604e4b2e13151afeebd6ee407885be7d72e16 (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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204