diff options
Diffstat (limited to 'net/mac80211/debugfs.c')
-rw-r--r-- | net/mac80211/debugfs.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index a694c593ff6a..b8b0ae79a743 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c | |||
@@ -36,6 +36,7 @@ static ssize_t name## _read(struct file *file, char __user *userbuf, \ | |||
36 | static const struct file_operations name## _ops = { \ | 36 | static const struct file_operations name## _ops = { \ |
37 | .read = name## _read, \ | 37 | .read = name## _read, \ |
38 | .open = mac80211_open_file_generic, \ | 38 | .open = mac80211_open_file_generic, \ |
39 | .llseek = generic_file_llseek, \ | ||
39 | }; | 40 | }; |
40 | 41 | ||
41 | #define DEBUGFS_ADD(name) \ | 42 | #define DEBUGFS_ADD(name) \ |
@@ -101,7 +102,8 @@ static ssize_t tsf_write(struct file *file, | |||
101 | static const struct file_operations tsf_ops = { | 102 | static const struct file_operations tsf_ops = { |
102 | .read = tsf_read, | 103 | .read = tsf_read, |
103 | .write = tsf_write, | 104 | .write = tsf_write, |
104 | .open = mac80211_open_file_generic | 105 | .open = mac80211_open_file_generic, |
106 | .llseek = default_llseek, | ||
105 | }; | 107 | }; |
106 | 108 | ||
107 | static ssize_t reset_write(struct file *file, const char __user *user_buf, | 109 | static ssize_t reset_write(struct file *file, const char __user *user_buf, |
@@ -120,6 +122,7 @@ static ssize_t reset_write(struct file *file, const char __user *user_buf, | |||
120 | static const struct file_operations reset_ops = { | 122 | static const struct file_operations reset_ops = { |
121 | .write = reset_write, | 123 | .write = reset_write, |
122 | .open = mac80211_open_file_generic, | 124 | .open = mac80211_open_file_generic, |
125 | .llseek = noop_llseek, | ||
123 | }; | 126 | }; |
124 | 127 | ||
125 | static ssize_t noack_read(struct file *file, char __user *user_buf, | 128 | static ssize_t noack_read(struct file *file, char __user *user_buf, |
@@ -155,7 +158,8 @@ static ssize_t noack_write(struct file *file, | |||
155 | static const struct file_operations noack_ops = { | 158 | static const struct file_operations noack_ops = { |
156 | .read = noack_read, | 159 | .read = noack_read, |
157 | .write = noack_write, | 160 | .write = noack_write, |
158 | .open = mac80211_open_file_generic | 161 | .open = mac80211_open_file_generic, |
162 | .llseek = default_llseek, | ||
159 | }; | 163 | }; |
160 | 164 | ||
161 | static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, | 165 | static ssize_t uapsd_queues_read(struct file *file, char __user *user_buf, |
@@ -201,7 +205,8 @@ static ssize_t uapsd_queues_write(struct file *file, | |||
201 | static const struct file_operations uapsd_queues_ops = { | 205 | static const struct file_operations uapsd_queues_ops = { |
202 | .read = uapsd_queues_read, | 206 | .read = uapsd_queues_read, |
203 | .write = uapsd_queues_write, | 207 | .write = uapsd_queues_write, |
204 | .open = mac80211_open_file_generic | 208 | .open = mac80211_open_file_generic, |
209 | .llseek = default_llseek, | ||
205 | }; | 210 | }; |
206 | 211 | ||
207 | static ssize_t uapsd_max_sp_len_read(struct file *file, char __user *user_buf, | 212 | static ssize_t uapsd_max_sp_len_read(struct file *file, char __user *user_buf, |
@@ -247,7 +252,8 @@ static ssize_t uapsd_max_sp_len_write(struct file *file, | |||
247 | static const struct file_operations uapsd_max_sp_len_ops = { | 252 | static const struct file_operations uapsd_max_sp_len_ops = { |
248 | .read = uapsd_max_sp_len_read, | 253 | .read = uapsd_max_sp_len_read, |
249 | .write = uapsd_max_sp_len_write, | 254 | .write = uapsd_max_sp_len_write, |
250 | .open = mac80211_open_file_generic | 255 | .open = mac80211_open_file_generic, |
256 | .llseek = default_llseek, | ||
251 | }; | 257 | }; |
252 | 258 | ||
253 | static ssize_t channel_type_read(struct file *file, char __user *user_buf, | 259 | static ssize_t channel_type_read(struct file *file, char __user *user_buf, |
@@ -279,7 +285,8 @@ static ssize_t channel_type_read(struct file *file, char __user *user_buf, | |||
279 | 285 | ||
280 | static const struct file_operations channel_type_ops = { | 286 | static const struct file_operations channel_type_ops = { |
281 | .read = channel_type_read, | 287 | .read = channel_type_read, |
282 | .open = mac80211_open_file_generic | 288 | .open = mac80211_open_file_generic, |
289 | .llseek = default_llseek, | ||
283 | }; | 290 | }; |
284 | 291 | ||
285 | static ssize_t queues_read(struct file *file, char __user *user_buf, | 292 | static ssize_t queues_read(struct file *file, char __user *user_buf, |
@@ -302,7 +309,8 @@ static ssize_t queues_read(struct file *file, char __user *user_buf, | |||
302 | 309 | ||
303 | static const struct file_operations queues_ops = { | 310 | static const struct file_operations queues_ops = { |
304 | .read = queues_read, | 311 | .read = queues_read, |
305 | .open = mac80211_open_file_generic | 312 | .open = mac80211_open_file_generic, |
313 | .llseek = default_llseek, | ||
306 | }; | 314 | }; |
307 | 315 | ||
308 | /* statistics stuff */ | 316 | /* statistics stuff */ |
@@ -346,6 +354,7 @@ static ssize_t stats_ ##name## _read(struct file *file, \ | |||
346 | static const struct file_operations stats_ ##name## _ops = { \ | 354 | static const struct file_operations stats_ ##name## _ops = { \ |
347 | .read = stats_ ##name## _read, \ | 355 | .read = stats_ ##name## _read, \ |
348 | .open = mac80211_open_file_generic, \ | 356 | .open = mac80211_open_file_generic, \ |
357 | .llseek = generic_file_llseek, \ | ||
349 | }; | 358 | }; |
350 | 359 | ||
351 | #define DEBUGFS_STATS_ADD(name, field) \ | 360 | #define DEBUGFS_STATS_ADD(name, field) \ |